Joe
Joe

Reputation: 4234

Can no longer run any node packages after reinstall

My node suddenly stopped working so I removed everything and installed node with homebrew.

Now I cant install grunt, nodemon, bower etc.

Pers-MacBook-Air:backendMD perstrom$ sudo npm install -g grunt-cli
Password:
/Users/perstrom/.node/bin/grunt -> /Users/perstrom/.node/lib/node_modules/grunt-cli/bin/grunt
[email protected] /Users/perstrom/.node/lib/node_modules/grunt-cli
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected])
Pers-MacBook-Air:backendMD perstrom$ grunt --version
bash: grunt: command not found
Pers-MacBook-Air:backendMD perstrom$ 

What can be wrong? How do I debug this?

Upvotes: 0

Views: 26

Answers (1)

Ben Diamant
Ben Diamant

Reputation: 6206

Try to expend your path (make sure this folder contains the bins):

export PATH=/Users/perstrom/.node/bin:$PATH 

Upvotes: 1

Related Questions