module.js:549 throw err; ^
module.js:549
throw err;
^
Error: Cannot find module './auth.js'
at Function.Module._resolveFilename (
module.js:549
throw err;
^
Error: Cannot find module './auth.js'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-registry-fetch/index.js:7:17)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
重装node
sudo rm -rf /usr/local/lib/node_modules
sudo rm -rf ~/.npm
brew uninstall --force node (会提示:
Error: Refusing to uninstall /usr/local/Cellar/node/8.1.4
because it is required by yarn 0.27.5, which is currently installed.
You can override this and force removal with:
brew uninstall --ignore-dependencies node)
brew install node