LoginSignup
49
39

More than 5 years have passed since last update.

俺のnpmが、Node.jsを全力で邪魔している

Last updated at Posted at 2015-02-14

バージョン確認でこけた。

$ npm -v

module.js:340
    throw err;
          ^
Error: Cannot find module 'npmlog'
    at Function.Module._resolveFilename (module.js:338:15)
    at Function.Module._load (module.js:280:25)
    at Module.require (module.js:364:17)
    at require (module.js:380:17)
    at /usr/local/lib/node_modules/npm/bin/npm-cli.js:18:11
    at Object.<anonymous> (/usr/local/lib/node_modules/npm/bin/npm-cli.js:75: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)

で、brewで再インストールとかもしたけど変わらず。
ググったらnpm install -g npm-install-missingだという意見が多数だったので試したけど無理。

これで解決しました。
https://github.com/tj/n/issues/101

curl -0 -L http://npmjs.org/install.sh | sudo sh

thank you!

49
39
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
49
39