You are not logged in.
By default, npm globally installs packages to /usr/lib/node_modules/. By following the procedure in this SO post, I changed the default installation directory to ~/.npm-packages. The mentioned solution kept working until upgrading to nodejs-0.10.29-1.
The mentioned new version of npm seems to ignore the prefix parameter in ~/.npmrc which sets the default installation directory. Whenever I tried to install an npm package via npm install -g package_name with the new version, I got an error indicating that I am not allowed to write to /usr/lib/node_modules/ although I hadn't changed a thing in ~/.npmrc since upgrading to version 0.10.29-1.
Has anyone else experienced the same issue?
Last edited by Sir Sure E. Nuff (2014-06-18 19:43:06)
Offline
Hi there,
This has to do with the npm version installed on arch(1.4.14)(https://github.com/npm/npm/issues/5392). 1.4.16 seems to have this fixed. Just run with enough permissions:
npm install -g npmLast edited by jvanveen (2014-06-19 13:58:06)
Offline