![]() Sudo yum install nodejs-compat-symlinks npm. Moreover, instructions are available for Amazon Linux specifically: sudo yum localinstall -nogpgcheck The repository is kept up to date and is rarely more than a couple of days behind the source code. Node.js provides a procedure to install from a repository - which includes npm and some other related components. ![]() In addition to often installing in non-standard locations, software that is compiled from source is much harder to keep up to date. When possible, it is best to avoid compiling packages. So to sum up, npm seems to be working fine, although the output when installing it would lead one to believe otherwise, and the supervisor package seems like it's installed, but its command is not working.Īny help on figuring this out would be greatly appreciated! Npm ERR! Please try running this command again as root/Administrator.īut the output is sudo: npm: command not found ![]() So I try npm install -g supervisor which outputs npm ERR! Error: EACCES, mkdir '/usr/local/lib/node_modules/supervisor' Npm WARN prefer global should be installed with -g Then I run npm install supervisor in the directory of my app, and the supervisor folder is there in /node_modules, however the supervisor command does not exist. Then, the weird thing is that I notice that npm is actually installed! Running npm -v shows its version. I open ~/.bash_profile and add this line: export PATH=/usr/local/bin:$PATHĪnd try to install npm again, only to find that it outputs the same message as last time, which the exact same PATH. Note that running as sudo can change envs.īut node is clearly installed (running node -v shows its version), so it must be that node is not in my path. Maybe node is installed, but not in the PATH? It outputs: npm cannot be installed without nodejs. I'm running an Amazon Linux AMI and successfully installed node.js by wget'ing the source, untarring the file, and running.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |