Package: npm
Version: 1.3.10~dfsg-1
Severity: normal

bash# npm install -local bower
npm ERR! Error: Cannot find module 'readable-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/sha/index.js:3:48)
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:32)
npm ERR!     at Function._load (module.js:311:12)
npm ERR!     at Module.require (module.js:359:17)
npm ERR! If you need help, you may report this log at:
npm ERR!     <>
npm ERR! or email it to:
npm ERR!     <>

npm ERR! System Linux 3.10-3-686-pae
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "-local" "bower"
npm ERR! cwd /home/user/tmp
npm ERR! node -v v0.6.19
npm ERR! npm -v 1.3.10
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/user/tmp/npm-debug.log
npm ERR! not ok code undefined
npm ERR! not ok code 1

After grepping I found:

  $ cd /usr/lib/
  $ ack-grep readable-stream
3:var Transform = require('stream').Transform || 

and change that line to:

  var Transform = require('stream').Transform // || 

and error goes out!

-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (400, 'testing'), (200, 'unstable')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.10-3-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages npm depends on:
ii  node-abbrev               1.0.4-2
ii  node-ansi                 0.2.1-1
ii  node-archy                0.0.2-1
ii  node-block-stream         0.0.7-1
ii  node-fstream              0.1.24-1
ii  node-fstream-ignore       0.0.6-2
ii  node-github-url-from-git  1.1.1-1
ii  node-glob                 3.2.6-1
ii  node-graceful-fs          2.0.0-2
ii  node-gyp                  0.10.10-2
ii  node-inherits             2.0.0-1
ii  node-ini                  1.1.0-1
ii  node-lockfile             0.4.1-1
ii  node-lru-cache            2.3.1-1
ii  node-minimatch            0.2.12-1
ii  node-mkdirp               0.3.5-1
ii  node-nopt                 2.1.2-1
ii  node-npmlog               0.0.4-1
ii  node-once                 1.1.1-1
ii  node-osenv                0.0.3-1
ii  node-read                 1.0.4-1
ii  node-read-package-json    1.1.3-1
ii  node-request              2.26.1-1
ii  node-retry                0.6.0-1
ii  node-rimraf               2.2.2-2
ii  node-semver               2.1.0-2
ii  node-sha                  1.2.3-1
ii  node-slide                1.1.4-1
ii  node-tar                  0.1.18-1
ii  node-which                1.0.5-2
ii  nodejs                    0.10.22~dfsg1-2

Best regards!

Pkg-javascript-devel mailing list

Reply via email to