缺少package.json但它在当前工作目录中

时间:2018-04-19 00:02:23

标签: npm

我运行npm install并且它抱怨当前工作目录中不存在package.json。但是,它确实存在。

myapp$ pwd
/code/myapp

myapp$ npm --version
5.8.0
myapp$ nvm --version
0.33.5
myapp$ pip --version
pip 10.0.0 from /Library/Python/2.7/site-packages/pip (python 2.7)
myapp$ node --version
v8.11.1

myapp$ ls package.json
package.json

myapp$ npm install
npm ERR! code ENOPACKAGEJSON
npm ERR! package.json Non-registry package missing package.json: <REDACTED>.
npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR! A complete log of this run can be found in:
npm ERR!     /.npm/_logs/2018-04-18T23_14_42_398Z-debug.log

我在这里画空白。我会很感激一些指点。

0 个答案:

没有答案