[saucy] npm refuses to run with current nodejs version (v0.10.15)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
npm (Debian) |
Fix Released
|
Unknown
|
|||
npm (Ubuntu) |
Fix Released
|
High
|
Unassigned |
Bug Description
root@jrod-laptop:~# npm install yo
Error: npm doesn't work with node v0.10.15
Required: node@0.6 || 0.7 || 0.8
at /usr/share/
at Object.<anonymous> (/usr/share/
at Module._compile (module.js:456:26)
at Object.
at Module.load (module.js:356:32)
at Function.
at Function.
at startup (node.js:119:16)
at node.js:901:3
Looks like nodejs package was updated but npm wasn't, and it refuses to run on the newer version.
http://
Complete output from a fresh install of the NPM package:
root@jrod-laptop:~# apt-get install npm
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
javascript-common libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc libv8-3.14-dev libv8-3.14.5 node-abbrev node-block-stream node-fstream node-graceful-fs node-inherits node-ini
node-lru-cache node-minimatch node-mkdirp node-node-uuid node-nopt node-request node-rimraf node-semver node-sigmund node-tar node-which nodejs nodejs-dev zlib1g-dev
Suggested packages:
apache2 lighttpd httpd build-essential
The following NEW packages will be installed:
javascript-common libc-ares-dev libc-ares2 libjs-node-uuid libssl-dev libssl-doc libv8-3.14-dev libv8-3.14.5 node-abbrev node-block-stream node-fstream node-graceful-fs node-inherits node-ini
node-lru-cache node-minimatch node-mkdirp node-node-uuid node-nopt node-request node-rimraf node-semver node-sigmund node-tar node-which nodejs nodejs-dev npm zlib1g-dev
0 upgraded, 29 newly installed, 0 to remove and 19 not upgraded.
Need to get 0 B/6,194 kB of archives.
After this operation, 19.3 MB of additional disk space will be used.
Do you want to continue [Y/n]?
Selecting previously unselected package libc-ares2:amd64.
(Reading database ... 184280 files and directories currently installed.)
Unpacking libc-ares2:amd64 (from .../libc-
Selecting previously unselected package javascript-common.
Unpacking javascript-common (from .../javascript-
Selecting previously unselected package libjs-node-uuid.
Unpacking libjs-node-uuid (from .../libjs-
Selecting previously unselected package zlib1g-dev:amd64.
Unpacking zlib1g-dev:amd64 (from .../zlib1g-
Selecting previously unselected package libssl-dev:amd64.
Unpacking libssl-dev:amd64 (from .../libssl-
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-
Selecting previously unselected package libv8-3.14.5.
Unpacking libv8-3.14.5 (from .../libv8-
Selecting previously unselected package libv8-3.14-dev.
Unpacking libv8-3.14-dev (from .../libv8-
Selecting previously unselected package nodejs.
Unpacking nodejs (from .../nodejs_
Selecting previously unselected package node-node-uuid.
Unpacking node-node-uuid (from .../node-
Selecting previously unselected package libc-ares-
Unpacking libc-ares-dev:amd64 (from .../libc-
Selecting previously unselected package node-abbrev.
Unpacking node-abbrev (from .../node-
Selecting previously unselected package node-inherits.
Unpacking node-inherits (from .../node-
Selecting previously unselected package node-block-stream.
Unpacking node-block-stream (from .../node-
Selecting previously unselected package node-rimraf.
Unpacking node-rimraf (from .../node-
Selecting previously unselected package node-mkdirp.
Unpacking node-mkdirp (from .../node-
Selecting previously unselected package node-graceful-fs.
Unpacking node-graceful-fs (from .../node-
Selecting previously unselected package node-fstream.
Unpacking node-fstream (from .../node-
Selecting previously unselected package node-ini.
Unpacking node-ini (from .../node-
Selecting previously unselected package node-lru-cache.
Unpacking node-lru-cache (from .../node-
Selecting previously unselected package node-sigmund.
Unpacking node-sigmund (from .../node-
Selecting previously unselected package node-minimatch.
Unpacking node-minimatch (from .../node-
Selecting previously unselected package node-nopt.
Unpacking node-nopt (from .../node-
Selecting previously unselected package node-request.
Unpacking node-request (from .../node-
Selecting previously unselected package node-semver.
Unpacking node-semver (from .../node-
Selecting previously unselected package node-tar.
Unpacking node-tar (from .../node-
Selecting previously unselected package node-which.
Unpacking node-which (from .../node-
Selecting previously unselected package nodejs-dev.
Unpacking nodejs-dev (from .../nodejs-
Selecting previously unselected package npm.
Unpacking npm (from .../npm_
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 3 added doc-base files...
Setting up libc-ares2:amd64 (1.10.0-2) ...
Setting up javascript-common (11) ...
Setting up libjs-node-uuid (1.3.3-2) ...
Setting up zlib1g-dev:amd64 (1:1.2.
Setting up libssl-dev:amd64 (1.0.1e-3ubuntu1) ...
Setting up libssl-doc (1.0.1e-3ubuntu1) ...
Setting up libv8-3.14.5 (3.14.5.8-4) ...
Setting up libv8-3.14-dev (3.14.5.8-4) ...
Setting up nodejs (0.10.15~dfsg1-4) ...
update-
Setting up node-node-uuid (1.3.3-2) ...
Setting up libc-ares-dev:amd64 (1.10.0-2) ...
Setting up node-abbrev (1.0.3-1) ...
Setting up node-inherits (0.1-1) ...
Setting up node-block-stream (0.0.6-1) ...
Setting up node-rimraf (2.0.1-1) ...
Setting up node-mkdirp (0.3.1-2) ...
Setting up node-graceful-fs (1.2.1-2) ...
Setting up node-fstream (0.1.22-1) ...
Setting up node-ini (1.1.0-1) ...
Setting up node-lru-cache (2.3.0-1) ...
Setting up node-sigmund (1.0.0-1) ...
Setting up node-minimatch (0.2.11-1) ...
Setting up node-nopt (1.0.10-2) ...
Setting up node-request (2.9.153-1) ...
Setting up node-semver (1.0.13-2) ...
Setting up node-tar (0.1.13-1) ...
Setting up node-which (1.0.5-2) ...
Setting up nodejs-dev (0.10.15~dfsg1-4) ...
Setting up npm (1.1.4~dfsg-2) ...
Processing triggers for libc-bin ...
root@jrod-laptop:~# npm install yo
Error: npm doesn't work with node v0.10.15
Required: node@0.6 || 0.7 || 0.8
at /usr/share/
at Object.<anonymous> (/usr/share/
at Module._compile (module.js:456:26)
at Object.
at Module.load (module.js:356:32)
at Function.
at Function.
at startup (node.js:119:16)
at node.js:901:3
Changed in npm (Ubuntu): | |
status: | New → Triaged |
importance: | Undecided → Critical |
Changed in npm (Debian): | |
status: | Unknown → Fix Released |
Changed in npm (Ubuntu): | |
importance: | Critical → High |
Changed in npm (Ubuntu): | |
status: | Fix Committed → Fix Released |
$ lsb_release -rd
Description: Ubuntu Saucy Salamander (development branch)
Release: 13.10
$ apt-cache policy npm us.archive. ubuntu. com/ubuntu/ saucy/universe amd64 Packages dpkg/status
npm:
Installed: 1.1.4~dfsg-2
Candidate: 1.1.4~dfsg-2
Version table:
*** 1.1.4~dfsg-2 0
500 http://
100 /var/lib/