Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
problem using npm
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
ET  
View profile  
 More options Jul 20 2012, 11:48 pm
From: ET <et.s...@gmail.com>
Date: Fri, 20 Jul 2012 20:48:56 -0700 (PDT)
Local: Fri, Jul 20 2012 11:48 pm
Subject: problem using npm

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!     <npm-@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?


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Thomas Blobaum  
View profile  
 More options Jul 21 2012, 3:47 am
From: Thomas Blobaum <tblob...@gmail.com>
Date: Sat, 21 Jul 2012 02:47:43 -0500
Local: Sat, Jul 21 2012 3:47 am
Subject: Re: [nodejs] problem using npm
no, but consider just using something like this

https://github.com/creationix/nvm


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mscdex  
View profile  
 More options Jul 21 2012, 6:49 am
From: mscdex <msc...@gmail.com>
Date: Sat, 21 Jul 2012 03:49:04 -0700 (PDT)
Local: Sat, Jul 21 2012 6:49 am
Subject: Re: problem using npm

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.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Isaac Schlueter  
View profile  
 More options Jul 24 2012, 4:47 am
From: Isaac Schlueter <i...@izs.me>
Date: Tue, 24 Jul 2012 01:47:56 -0700
Local: Tues, Jul 24 2012 4:47 am
Subject: Re: [nodejs] Re: problem using npm
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.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »