[Pkg-javascript-devel] npm debian package
Jérémy Lal
kapouer at melix.org
Wed Oct 12 17:43:53 UTC 2011
On 08/10/2011 07:39, Isaac Schlueter wrote:
> Ok, pushed to master. It'll be in 1.0.95. Let's see how it goes :)
...
>>> Whenever npm fetches and unpacks the npm package, it will copy its
>>> builtinconfig file into that new copy of npm. This way, it will
>>> survive self-updates without wrecking the system.
...
Update,
current npm HEAD goes very well :
# installed by debian package
$ which npm
/usr/bin/npm
# let's auto-install (a downgrade to 0.1.94)
$ npm -g install npm
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js
/usr/local/bin/npm_g -> /usr/local/lib/node_modules/npm/bin/npm.js
/usr/local/bin/npm-g -> /usr/local/lib/node_modules/npm/bin/npm.js
npm at 1.0.94 /usr/local/lib/node_modules/npm
$ which npm
/usr/local/bin/npm
# idempotency !
$ npm -g install npm
/usr/local/bin/npm_g -> /usr/local/lib/node_modules/npm/bin/npm.js
/usr/local/bin/npm -> /usr/local/lib/node_modules/npm/bin/npm.js
/usr/local/bin/npm-g -> /usr/local/lib/node_modules/npm/bin/npm.js
npm at 1.0.94 /usr/local/lib/node_modules/npm
$ which npm
/usr/local/bin/npm
$ cat /usr/local/lib/node_modules/npm/npmrc
globalconfig = /etc/npmrc
globalignorefile = /etc/npmignore
prefix = /usr/local
# and get back to the original state
$ npm -g rm npm
$ which npm
/usr/bin/npm
# unscrewable
$ npm -g rm npm
npm WARN Not installed in /usr/local/lib/node_modules npm
Many thanks !
Jérémy.
More information about the Pkg-javascript-devel
mailing list