node.js - NPM not working after initial Node package install -


so i've got brand new macbook pro running 10.10.3 (14d2134). installed node.js via package installer can download on https://nodejs.org/

from there attempted install grunt via npm after getting error -bash: npm: command not found realized npm might need installed in addition initial install of node.

i tried removing node following these instructions: how uninstall node.js, , reinstall beginning (mac os x) intention of reinstalling both node , npm via homebrew. however, after following above instructions , attempting install node homebrew, recieved error saying node installed (apparently didn't remove every trace of it) wasn't linked. followed command line prompts link node , did successfully.

so here node installed still getting nonsense. please send help. xoxo.

last login: mon jun 29 08:36:45 on ttys000 jeremys-macbook-pro:~ jeremypbeasley$ node -v v0.12.5 jeremys-macbook-pro:~ jeremypbeasley$ npm install -bash: npm: command not found jeremys-macbook-pro:~ jeremypbeasley$

i tried sudo npm install npm -g password got sudo: npm: command not found

i tried looking path if helps:

jeremys-macbook-pro:~ jeremypbeasley$ node /usr/local/bin/node jeremys-macbook-pro:~ jeremypbeasley$ echo $path /usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin jeremys-macbook-pro:~ jeremypbeasley$ ls -al /usr/local/bin/npm /usr/local/lib/node_modules ls: /usr/local/bin/npm: no such file or directory /usr/local/lib/node_modules: total 0 drwxrwxr-x 2 502 staff 68 jun 28 11:11 . drwxrwxr-x 5 502 staff 170 jun 28 11:24 .. jeremys-macbook-pro:~ jeremypbeasley$

those uninstall instructions pretty old (written in 2012). i'd start figuring out installation of node computer using:

which node 

you'll like:

/usr/local/bin/node 

follow path (in finder select go > go folder... or hit shirt + command + g , paste path). node either executation file or link. if it's link, follow it. leads homebrew's installation. be:

/usr/local/cellar/node 

if haven't installed xcode command line tools, try that:

xcode-select --install 

let me know find.


Comments

Popular posts from this blog

java - Andrioid studio start fail: Fatal error initializing 'null' -

android - Gradle sync Error:Configuration with name 'default' not found -

StringGrid issue in Delphi XE8 firemonkey mobile app -