I've installed node successfully using the pkg file from nodejs.org (I can get the "hello world" app running). The node.js installation dialogue stated that npm was also installed, but I can't get it to run from the command line (I get "-bash: npm: command not found
"). I've tried invoking it from the npm directory (.npm/npm/1.1.32/package
) but get an error message:
module.js:340
throw err;
^
Error: Cannot find module '/Users/Frank/.npm/npm/1.1.32/package/bin/node_modules/npm/bin/npm-cli.js'
Any help would be much appreciated -- I'm new to node and not yet very good with Terminal. Thanks!
OK, I've fixed the problem. It was a permissions issue. For some reason, my admin account did not have superuser permissions for several crucial locations; in particular, I lacked proper permissions for usr/local/bin/lib
and usr/local/bin/include
. Changing the permissions for these directories fixed the problem.