Re: [nodejs] problem using npm

240 views
Skip to first unread message

Thomas Blobaum

unread,
Jul 21, 2012, 3:47:43 AM7/21/12
to nod...@googlegroups.com
no, but consider just using something like this

https://github.com/creationix/nvm


On Fri, Jul 20, 2012 at 10:48 PM, ET <et....@gmail.com> wrote:
> i've install node.js on centos minimal 6.2 using the manual:
>
> cd /opt
> wget http://nodejs.tchol.org/repocfg/el/nodejs-stable-release.noarch.rpm
> yum -y localinstall --nogpgcheck nodejs-stable-release.noarch.rpm
> yum -y install nodejs-compat-symlinks npm
> rm -f nodejs-stable-release.noarch.rpm
>
>
> it worked fine. then i found out there is a repo (yum removed before):
>
> cd /etc/yum.repos.d
> wget http://nodejs.tchol.org/repocfg/el/nodejs-stable.repo
> yum update
> yum install --nogpgcheck nodejs-stable-release.noarch
> yum install nodejs-compat-symlinks npm
>
>
>
> it's installing the same version (0.6.18), but now I can't install nothing
> using npm!?
> i've tried to remove all using:
>
> rm -f /etc/yum.repos.d/nodejs*.*
> yum remove nodejs nodejs-stable-release.noarch nodejs-compat-symlinks npm
>
>
> and then reinstalled the old way, but now everytime i install, no matters if
> using repo or not, i get the following error when trying to do:
>
> npm install express
>
> or even when I try to simply do: npm update
>
> npm update
>
>
>
>
> npm ERR! Error: Cannot find module 'block-stream'
> npm ERR! at Function._resolveFilename (module.js:337:11)
> npm ERR! at Function._load (module.js:279:25)
> npm ERR! at Module.require (module.js:359:17)
> npm ERR! at require (module.js:375:17)
> npm ERR! at Object.<anonymous>
> (/usr/lib/nodejs/tar/lib/entry-writer.js:7:19)
> npm ERR! at Module._compile (module.js:446:26)
> npm ERR! at Object..js (module.js:464:10)
> npm ERR! at Module.load (module.js:353:31)
> npm ERR! at Function._load (module.js:311:12)
> npm ERR! at Module.require (module.js:359:17)
> npm ERR! You may report this log at:
> npm ERR! <http://github.com/isaacs/npm/issues>
> npm ERR! or email it to:
> npm ERR! <np...@googlegroups.com>
> npm ERR!
> npm ERR! System Linux 2.6.32-220.23.1.el6.x86_64
> npm ERR! command "nodejs" "/usr/bin/npm" "update"
> npm ERR! cwd /root
> npm ERR! node -v v0.6.18
> npm ERR! npm -v 1.1.19
> npm ERR! message Cannot find module 'block-stream'
> npm ERR!
> npm ERR! Additional logging details can be found in:
> npm ERR! /root/npm-debug.log
> npm not ok
>
> i found that /usr/lib/nodejs/npm/npmrc is having the following lines:
>
> globalignorefile = /etc/npmignore
> globalconfig = /etc/npmrc
>
>
> but no such file (/etc/npmrc) exists on my system, reinstall node.js not
> helps.
>
> does anyone knows what the problem is?
>
> --
> Job Board: http://jobs.nodejs.org/
> Posting guidelines:
> https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
> You received this message because you are subscribed to the Google
> Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com
> To unsubscribe from this group, send email to
> nodejs+un...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/nodejs?hl=en?hl=en

mscdex

unread,
Jul 21, 2012, 6:49:04 AM7/21/12
to nod...@googlegroups.com
On Friday, July 20, 2012 11:48:56 PM UTC-4, ET wrote:
i've install node.js on centos minimal 6.2 using the manual:

I would personally just try building and installing from source (`./configure && make && sudo make install`). The latest versions come with npm bundled, so you don't have to worry about having to install anything else.

Isaac Schlueter

unread,
Jul 24, 2012, 4:47:56 AM7/24/12
to nod...@googlegroups.com
It's a bug in the version of npm that your repo has.

Upgrade to a more recent npm version. It comes bundled with node.
The current stable version of node is 0.8.3 (0.8.4 will be out in a
day or two.) New stable versions come out about weekly, but I expect
that to slow down some as more bugs get squashed.

The 0.6 version family is in maintenance mode now. It will not see
releases very often, and new versions of npm will drop support for
node 0.6 fairly soon.
Reply all
Reply to author
Forward
0 new messages