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
  • 2,039
  • 3
  • 28
  • 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
  • 32,893
  • 9
  • 77
  • 89