Skip to content

Instantly share code, notes, and snippets.

@AlejoJamC
Last active June 18, 2016 22:43
Show Gist options
  • Save AlejoJamC/4df97fb1b65cdb0746dfceddd67fe73c to your computer and use it in GitHub Desktop.
Save AlejoJamC/4df97fb1b65cdb0746dfceddd67fe73c to your computer and use it in GitHub Desktop.
Error using npm install -g
# Avoid this command
node index.js
# Using nodemon package
npm install -g nodemon
npm config get prefix
ls -la /usr/local
ls -la /usr/local/lib
sudo chown -R $(whoami) $(npm config get prefix)/{lib/node_modules,bin,share}
npm install nodemon -g
nodemon -v
nodemon
nodemon server.js
@AlejoJamC
Copy link
Author

Gist with commands of my personal post: http://alejojamc.com/error-usando-npm-install-g/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment