Create-nuxt-app: Error running cli

Created on 7 Nov 2019  路  4Comments  路  Source: nuxt/create-nuxt-app

Hello,
after running npx create-nuxt-app <project-name> I get this error:

Trace: Error: EACCES: permission denied, open '/Users/xx/Library/Preferences/sao-nodejs/config.json.261333767'
    at Object.openSync (fs.js:451:3)
    at Function.writeFileSync [as sync] (/Users/xxx/.npm/_npx/31292/lib/node_modules/create-nuxt-app/node_modules/write-file-atomic/index.js:212:13)
    at Conf.set store [as store] (/Users/xxx/.npm/_npx/31292/lib/node_modules/create-nuxt-app/node_modules/conf/index.js:168:19)
    at Conf.set (/Users/xxx/.npm/_npx/31292/lib/node_modules/create-nuxt-app/node_modules/conf/index.js:82:14)
    at SAO.run (/Users/xxx/.npm/_npx/31292/lib/node_modules/create-nuxt-app/node_modules/sao/lib/index.js:81:13) {
  errno: -13,
  syscall: 'open',
  code: 'EACCES',
  path: '/Users/xxx/Library/Preferences/sao-nodejs/config.json.261333767'
}
    at /Users/xxx/.npm/_npx/31292/lib/node_modules/create-nuxt-app/cli.js:46:17

I am running macOs Catalina 10.15.1 (19B88).

ls on /Users/xx/Library/Preferences/sao-nodejs/ outputs:

config.json

I am not sure why it tries to open a weirdly suffixed json file. Is this anything on your side?

Most helpful comment

rm -rf /Users/${your_user_name}/Library/Preferences/sao-nodejs
works for me

All 4 comments

This file is created by package conf, conf is used by sao for string generator info and cache answers.

If you have more questions, I suggest creating an issue in sao.js and linked this one for more accurate answers.

rm -rf /Users/${your_user_name}/Library/Preferences/sao-nodejs
works for me

rm -rf /Users/${your_user_name}/Library/Preferences/sao-nodejs
works for me

Finally, I've found this. You save me. Thanks bro

Closing here then 鈽猴笍 if the comment from @yymoretime resolves the issue.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

OndrejCibulka picture OndrejCibulka  路  6Comments

olivbau picture olivbau  路  6Comments

jericopulvera picture jericopulvera  路  4Comments

leetwiz picture leetwiz  路  5Comments

stevenho0811 picture stevenho0811  路  10Comments