nuxt.js yarn create package not work

Created on 23 Aug 2020  路  3Comments  路  Source: nuxt/nuxt.js

Hi,

yarn create nuxt-app test12366
yarn create v1.22.4
[1/4] Resolving packages...
[2/4] Fetching packages...
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
info [email protected]: The platform "linux" is incompatible with this module.
info "[email protected]" is an optional dependency and failed compatibility check. Excluding it from installation.
[3/4] Linking dependencies...
warning "mongoui > [email protected]" has incorrect peer dependency "mongodb@~2.0".
[4/4] Building fresh packages...
success Installed "[email protected]" with binaries:
- create-nuxt-app
error Cannot create "/usr/local/bin/create-nuxt-app" due to insufficient permissions.
info Visit https://yarnpkg.com/en/docs/cli/create for documentation about this command.

bug-report

All 3 comments

This is an issue with your folder permissions in linux, not an issue with Nuxt. See linux.com/training-tutorials/how-manage-file-and-folder-permissions-linux/ for more.

Try creating a new directory like this: mkdir /home/git/nuxt-project, then cd into that directory with cd /home/git/nuxt-project, and run chmod 750 ..

Then run sudo yarn create nuxt-app test123456, and it should work. Let me know if you have issues.

It does not need sudo to work
I'm sorry
I'm forgot to install nuxt-app .. yarn global add nuxt-app

now it's work
yarn create nuxt-app test123456

Thank you

Can you close the issue? Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

maicong picture maicong  路  3Comments

mattdharmon picture mattdharmon  路  3Comments

pehbehbeh picture pehbehbeh  路  3Comments

nassimbenkirane picture nassimbenkirane  路  3Comments

shyamchandranmec picture shyamchandranmec  路  3Comments