You are not logged in.

#1 2014-06-18 19:42:30

Sir Sure E. Nuff
Member
Registered: 2014-01-24
Posts: 14

nodejs-0.10.29-1 makes npm ignore ~/.npmrc

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

#2 2014-06-19 13:56:01

jvanveen
Member
Registered: 2014-06-19
Posts: 1

Re: nodejs-0.10.29-1 makes npm ignore ~/.npmrc

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 npm

Last edited by jvanveen (2014-06-19 13:58:06)

Offline

Board footer

Powered by FluxBB