javascript - npm 安装 : install Couldn't read dependencies

标签 javascript angularjs node.js

我已经开始学习Angular JS。我正在经历这个,那就是构建简单 phonecat app

我正在按照步骤操作。 已下载 Node.js。 尝试执行此命令:npm install

发生错误: C:>npm 安装

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!     <https://github.com/npm/npm/issues>

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

C:\>

最佳答案

执行命令之前 npm install 执行这个 cd myproject 然后执行这个:npm install

已解决。谢谢。

关于javascript - npm 安装 : install Couldn't read dependencies,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30723943/

相关文章:

javascript - 根据选中的复选框数量生成动态 li 元素

javascript - event.target 是否包含唯一的位置属性,以便无需使用 data-* 创建自定义元素属性?

angularjs - 如何在 Angular 中的服务和工厂中定义构造函数?

node.js - Docker 容器与主机不同步

javascript 停止无限循环

node.js - 动态 express.static() 文件夹路径

javascript - jquery添加的内联样式为空

javascript - 执行期间未更新跨度

javascript - window.resolveLocalFileSystemURI 不是函数

javascript - 当 $watch-es 被 $destroy 时,我需要做些什么来清理它们吗?