[saucy] npm refuses to run with current nodejs version (v0.10.15)

Bug #1216465 reported by Jeff Rodriguez
14
This bug affects 2 people
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/npm/bin/npm-cli.js:67:23
    at Object.<anonymous> (/usr/share/npm/bin/npm-cli.js:87:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    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://packages.ubuntu.com/saucy/nodejs

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-ares2_1.10.0-2_amd64.deb) ...
Selecting previously unselected package javascript-common.
Unpacking javascript-common (from .../javascript-common_11_all.deb) ...
Selecting previously unselected package libjs-node-uuid.
Unpacking libjs-node-uuid (from .../libjs-node-uuid_1.3.3-2_all.deb) ...
Selecting previously unselected package zlib1g-dev:amd64.
Unpacking zlib1g-dev:amd64 (from .../zlib1g-dev_1%3a1.2.8.dfsg-1ubuntu1_amd64.deb) ...
Selecting previously unselected package libssl-dev:amd64.
Unpacking libssl-dev:amd64 (from .../libssl-dev_1.0.1e-3ubuntu1_amd64.deb) ...
Selecting previously unselected package libssl-doc.
Unpacking libssl-doc (from .../libssl-doc_1.0.1e-3ubuntu1_all.deb) ...
Selecting previously unselected package libv8-3.14.5.
Unpacking libv8-3.14.5 (from .../libv8-3.14.5_3.14.5.8-4_amd64.deb) ...
Selecting previously unselected package libv8-3.14-dev.
Unpacking libv8-3.14-dev (from .../libv8-3.14-dev_3.14.5.8-4_amd64.deb) ...
Selecting previously unselected package nodejs.
Unpacking nodejs (from .../nodejs_0.10.15~dfsg1-4_amd64.deb) ...
Selecting previously unselected package node-node-uuid.
Unpacking node-node-uuid (from .../node-node-uuid_1.3.3-2_all.deb) ...
Selecting previously unselected package libc-ares-dev:amd64.
Unpacking libc-ares-dev:amd64 (from .../libc-ares-dev_1.10.0-2_amd64.deb) ...
Selecting previously unselected package node-abbrev.
Unpacking node-abbrev (from .../node-abbrev_1.0.3-1_all.deb) ...
Selecting previously unselected package node-inherits.
Unpacking node-inherits (from .../node-inherits_0.1-1_all.deb) ...
Selecting previously unselected package node-block-stream.
Unpacking node-block-stream (from .../node-block-stream_0.0.6-1_all.deb) ...
Selecting previously unselected package node-rimraf.
Unpacking node-rimraf (from .../node-rimraf_2.0.1-1_all.deb) ...
Selecting previously unselected package node-mkdirp.
Unpacking node-mkdirp (from .../node-mkdirp_0.3.1-2_all.deb) ...
Selecting previously unselected package node-graceful-fs.
Unpacking node-graceful-fs (from .../node-graceful-fs_1.2.1-2_all.deb) ...
Selecting previously unselected package node-fstream.
Unpacking node-fstream (from .../node-fstream_0.1.22-1_all.deb) ...
Selecting previously unselected package node-ini.
Unpacking node-ini (from .../node-ini_1.1.0-1_all.deb) ...
Selecting previously unselected package node-lru-cache.
Unpacking node-lru-cache (from .../node-lru-cache_2.3.0-1_all.deb) ...
Selecting previously unselected package node-sigmund.
Unpacking node-sigmund (from .../node-sigmund_1.0.0-1_all.deb) ...
Selecting previously unselected package node-minimatch.
Unpacking node-minimatch (from .../node-minimatch_0.2.11-1_all.deb) ...
Selecting previously unselected package node-nopt.
Unpacking node-nopt (from .../node-nopt_1.0.10-2_all.deb) ...
Selecting previously unselected package node-request.
Unpacking node-request (from .../node-request_2.9.153-1_all.deb) ...
Selecting previously unselected package node-semver.
Unpacking node-semver (from .../node-semver_1.0.13-2_all.deb) ...
Selecting previously unselected package node-tar.
Unpacking node-tar (from .../node-tar_0.1.13-1_all.deb) ...
Selecting previously unselected package node-which.
Unpacking node-which (from .../node-which_1.0.5-2_all.deb) ...
Selecting previously unselected package nodejs-dev.
Unpacking nodejs-dev (from .../nodejs-dev_0.10.15~dfsg1-4_amd64.deb) ...
Selecting previously unselected package npm.
Unpacking npm (from .../npm_1.1.4~dfsg-2_all.deb) ...
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.8.dfsg-1ubuntu1) ...
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-alternatives: using /usr/bin/nodejs to provide /usr/bin/js (js) in auto mode
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/npm/bin/npm-cli.js:67:23
    at Object.<anonymous> (/usr/share/npm/bin/npm-cli.js:87:3)
    at Module._compile (module.js:456:26)
    at Object.Module._extensions..js (module.js:474:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:312:12)
    at Function.Module.runMain (module.js:497:10)
    at startup (node.js:119:16)
    at node.js:901:3

Tags: saucy
Revision history for this message
Jeff Rodriguez (jeffreyrodriguez) wrote :

$ lsb_release -rd
Description: Ubuntu Saucy Salamander (development branch)
Release: 13.10

$ apt-cache policy npm
npm:
  Installed: 1.1.4~dfsg-2
  Candidate: 1.1.4~dfsg-2
  Version table:
 *** 1.1.4~dfsg-2 0
        500 http://us.archive.ubuntu.com/ubuntu/ saucy/universe amd64 Packages
        100 /var/lib/dpkg/status

Andreas Moog (ampelbein)
Changed in npm (Ubuntu):
status: New → Triaged
importance: Undecided → Critical
Changed in npm (Debian):
status: Unknown → Fix Released
Andreas Moog (ampelbein)
Changed in npm (Ubuntu):
importance: Critical → High
Revision history for this message
Andreas Moog (ampelbein) wrote :

I have requested syncs from debian for npm and the needed, updated dependencies. This should be fixed when all those are built in Ubuntu.

Changed in npm (Ubuntu):
status: Triaged → Fix Committed
Trent Lloyd (lathiat)
Changed in npm (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.