最新消息: 电脑我帮您提供丰富的电脑知识,编程学习,软件下载,win7系统下载。

npm install:install无法读取依赖项

IT培训 admin 2浏览 0评论

npm install:install无法读取依赖项

我已经开始学习Angular JS了。我正在经历这一点,即建造简单的phonecat app

我正在遵循这些步骤。已下载Node.js.尝试执行此命令:npm install

发生错误:C:> npm install

npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! path C:\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058

npm ERR! package.json ENOENT, open 'C:\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 directo
ry.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Uncaught, unspecified "error" event.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <;

npm ERR! Please include the following file with any support request:
npm ERR!     C:\npm-debug.log

C:\>
回答如下:

在执行命令之前npm install执行此cd myproject然后执行:npm install

它解决了。谢谢。

npm install:install无法读取依赖项

我已经开始学习Angular JS了。我正在经历这一点,即建造简单的phonecat app

我正在遵循这些步骤。已下载Node.js.尝试执行此命令:npm install

发生错误:C:> npm install

npm ERR! install Couldn't read dependencies
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1
npm ERR! path C:\package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -4058

npm ERR! package.json ENOENT, open 'C:\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 directo
ry.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program Files (
x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! node v0.12.4
npm ERR! npm  v2.10.1

npm ERR! Uncaught, unspecified "error" event.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <;

npm ERR! Please include the following file with any support request:
npm ERR!     C:\npm-debug.log

C:\>
回答如下:

在执行命令之前npm install执行此cd myproject然后执行:npm install

它解决了。谢谢。

发布评论

评论列表 (0)

  1. 暂无评论