-
Notifications
You must be signed in to change notification settings - Fork 10.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error while install gatsby-cli #14074
Comments
I couldn't reproduce locally with exact same npm/node versions, however I have a feeling it might be a permission problem for the config file. Are you running this from root user? Your nvm path seems to suggest that. |
Ok, we repro'd it. This indeed happens when you have nvm installed as root. A workaround for that would be to run However, we do not recommend such setups, as this opens a vector of attack. I advice you to install nvm as a regular, non-root user. |
when i try with yarn it working clean @freiksenet ok thanks for your fast respond, i'll try it |
@ilomon10 how did you get it to work with yarn? I am facing this issue right now. |
It worked for me when we install it as a SuperUser/RootUser in Linux. |
$sudo npm install -g gatsby-cli solved the it |
Description
Can't install Gatsby CLI step Quick Start Docs
Steps to reproduce
Expected result
gatsby-cli succesfully installed.
Actual result
Environment
The text was updated successfully, but these errors were encountered: