Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"npm install webtorrent" failed. #481

Closed
zanetu opened this issue Nov 9, 2015 · 6 comments
Closed

"npm install webtorrent" failed. #481

zanetu opened this issue Nov 9, 2015 · 6 comments
Labels

Comments

@zanetu
Copy link

zanetu commented Nov 9, 2015

npm WARN engine windows-no-runnable@0.0.6: wanted: {"node":"0.6"} (current: {"node":"4.2.2","npm":"1.4.21"})
npm ERR! not a package /tmp/npm-11115-8x1SWx1P/github.com/jhiesey/mp4box.js.git
npm ERR! tar.unpack untar error /home/zanetu/.npm/moment/2.10.6/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/lru-cache/2.7.0/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/split/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/ip-set/1.0.0/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/bittorrent-protocol/1.5.12/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/once/1.3.2/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/which/1.2.0/package.tgz
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules/string2compact'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  webtorrent@0.62.3 { [Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules/string2compact']
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules/string2compact' }
npm ERR! Error: ENOENT: no such file or directory, open '/tmp/npm-11115-8x1SWx1P/github.com/jhiesey/mp4box.js.git-unpack/package.json'
npm ERR!     at Error (native)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.14-2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent"
npm ERR! cwd /home/zanetu/download
npm ERR! node -v v4.2.2
npm ERR! npm -v 1.4.21
npm ERR! path /tmp/npm-11115-8x1SWx1P/github.com/jhiesey/mp4box.js.git-unpack/package.json
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! tar.unpack untar error /home/zanetu/.npm/bencode/0.7.0/package.tgz
npm ERR! Error: ENOENT: no such file or directory, open '/home/zanetu/download/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/img.png'
npm ERR!     at Error (native)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.14-2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent"
npm ERR! cwd /home/zanetu/download
npm ERR! node -v v4.2.2
npm ERR! npm -v 1.4.21
npm ERR! path /home/zanetu/download/node_modules/webtorrent/node_modules/torrent-discovery/node_modules/bittorrent-tracker/img.png
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! tar.unpack untar error /home/zanetu/.npm/compact2string/1.4.0/package.tgz
npm ERR! Error: ENOENT: no such file or directory, open '/home/zanetu/download/node_modules/webtorrent/node_modules/pretty-bytes/node_modules/meow/readme.md'
npm ERR!     at Error (native)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.14-2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent"
npm ERR! cwd /home/zanetu/download
npm ERR! node -v v4.2.2
npm ERR! npm -v 1.4.21
npm ERR! path /home/zanetu/download/node_modules/webtorrent/node_modules/pretty-bytes/node_modules/meow/readme.md
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! tar.unpack untar error /home/zanetu/.npm/request/2.65.0/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/multicast-dns/2.2.0/package.tgz
npm ERR! tar.unpack untar error /home/zanetu/.npm/airplay-js/0.2.16/package.tgz
npm ERR! Error: ENOENT: no such file or directory, open '/home/zanetu/download/node_modules/webtorrent/node_modules/chromecasts/node_modules/xml2js/lib/processors.js'
npm ERR!     at Error (native)
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! System Linux 3.14-2-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "webtorrent"
npm ERR! cwd /home/zanetu/download
npm ERR! node -v v4.2.2
npm ERR! npm -v 1.4.21
npm ERR! path /home/zanetu/download/node_modules/webtorrent/node_modules/chromecasts/node_modules/xml2js/lib/processors.js
npm ERR! syscall open
npm ERR! code ENOENT
npm ERR! errno -2
npm WARN optional dep failed, continuing airplay-js@0.2.16
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  ut_pex@1.0.3 { [Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules']
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/home/zanetu/download/node_modules/webtorrent/node_modules/ut_pex/node_modules' }
npm ERR! error rolling back Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/chromecasts/node_modules/node-ssdp'
npm ERR! error rolling back     at Error (native)
npm ERR! error rolling back  chromecasts@1.5.3 { [Error: ENOTEMPTY: directory not empty, rmdir '/home/zanetu/download/node_modules/webtorrent/node_modules/chromecasts/node_modules/node-ssdp']
npm ERR! error rolling back   errno: -39,
npm ERR! error rolling back   code: 'ENOTEMPTY',
npm ERR! error rolling back   syscall: 'rmdir',
npm ERR! error rolling back   path: '/home/zanetu/download/node_modules/webtorrent/node_modules/chromecasts/node_modules/node-ssdp' }
npm WARN optional dep failed, continuing chromecasts@1.5.3
npm ERR! tar.unpack untar error /home/zanetu/.npm/castv2-client/1.1.0/package.tgz
npm WARN optional dep failed, continuing nodebmc@0.0.5
npm WARN optional dep failed, continuing node-ssdp@2.6.3
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/zanetu/download/npm-debug.log
npm ERR! not ok code 0

Please let me know if you need further information.

@Alvarz
Copy link

Alvarz commented Nov 9, 2015

I'm having the same issue

@josephfrazier
Copy link
Member

@zanetu, you're running a rather old version of npm (I even have trouble with npm@2.4.1!). Can you try it after running one of the following?

npm install --global npm@latest-2
npm install --global npm@latest

For reference, here are the current values of latest-2 and latest, both of which work for me with Node 4.2.2:

npm info npm | grep latest | head -2
   { latest: '3.3.12',
     'latest-2': '2.14.9',

(tagging other mp4box issues: #482, #468, #412, #457)

@zanetu
Copy link
Author

zanetu commented Nov 10, 2015

@joseph-onsip
npm@latest-2 does not work but npm@latest does.
Thanks for your help and feel free to close this issue whenever you wish to.

@josephfrazier
Copy link
Member

Glad to hear you got it working. As for npm@latest-2: you may need to rm -rf node_modules between different versions of npm (at least, that's what I did)

@Alvarz
Copy link

Alvarz commented Nov 10, 2015

yeah it's working now, thank you

@lock
Copy link

lock bot commented May 4, 2018

This thread has been automatically locked because it has not had recent activity. To discuss futher, please open a new issue.

@lock lock bot locked as resolved and limited conversation to collaborators May 4, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

4 participants