3

I can't do npm command on terminal after updating my OS to Mavericks.

when I try this: node /usr/local/lib/node_modules/npm/bin/npm-cli.js -v it is working and showing the version 1.4.3

I don't know what's happening here, can anyone help me? Thanks

clintgh
  • 1,909
  • 2
  • 27
  • 44

1 Answers1

8

Try relinking the bin:

ln -s /usr/local/lib/node_modules/npm/bin/npm-cli.js /usr/bin/npm

You might need to run as root.

Scimonster
  • 31,931
  • 8
  • 74
  • 86