Skip to content

Cannot create "/usr/local/bin/create-next-app" due to insufficient permissions. #1595

Answered by mattaereal
gas-limit asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! At first glance you seem to be having issues with your local yarn/node installation.

It appears the default path for a local installation (or prefix) is not set properly, that's why it's complaining about permissions.

Will you please show me the output of the following command?
↪ cat ~/.npmrc

In advance, you can modify the contents of that file, to this
prefix=/home/<your_username>/.npm-packages

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@gas-limit
Comment options

@mattaereal
Comment options

@gas-limit
Comment options

@mattaereal
Comment options

Answer selected by gas-limit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants