NPM在终端安装期间出现错误

时间:2019-07-08 21:29:18

标签: macos npm terminal

在我不得不将笔记本电脑擦干净后,尝试在Mac上重新安装npm时收到此消息。运行最新的莫哈韦沙漠版本。这是我遇到的错误,尝试了一些我在互联网上发现的不同的事情,例如强制安装,但这对我不起作用。

npm ERR! install Couldn't read dependencies
npm ERR! package.json ENOENT, open '/Users/me/package.json'
npm ERR! package.json This is most likely not a problem with npm itself.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/Me
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /Users/Me/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /Users/Me/npm-debug.log
npm ERR! not ok code 0

0 个答案:

没有答案