jdx/npm-register

Unable to install: no such file or directory

zeke opened this issue · 4 comments

zeke commented
$ npm install -g npm-register

npm ERR! path /usr/local/lib/node_modules/npm-register/bin/npm-register
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/npm-register/bin/npm-register'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/z/.npm/_logs/2017-08-29T04_22_15_076Z-debug.log

$ node -v
v8.4.0

$ which node
/usr/local/bin/node

$ npm config get prefix
/usr/local

$ uname -a
Darwin Zekes-MBP 16.7.0 Darwin Kernel Version 16.7.0: Thu Jun 15 17:36:27 PDT 2017; root:xnu-3789.70.16~2/RELEASE_X86_64 x86_64
zeke commented

Install didn't fail with yarn, but npm-register is not found:

$ yarn global add npm-register
yarn global v0.27.5
warning package.json: No license field
warning No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Installed "npm-register@2.5.0" with binaries:
      - npm-register
warning No license field
Done in 0.97s.

~ master*
$ npm-register
zsh: command not found: npm-register
zeke commented

Tried deleting and re-installing. No dice.

debug log

jdx commented

fixed in c4fc582

zeke commented

Thanks!

Got a bunch of silly output about missing python2, but it worked. 🙏