3 javascript git macos node.js npm
npm installnpm install这里:
npm ERR! install **Couldn't read dependencies**
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.12.0
npm ERR! npm v2.5.1
npm ERR! path /Users/Raj/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! package.json ENOENT, open '/Users/Raj/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! Please include the following file with any support request:
npm ERR! /Users/Raj/Desktop/ctci/npm-debug.log
Run Code Online (Sandbox Code Playgroud)
你能告诉我怎么解决吗?
git clone https://github.com/gaylemcd/ctci.git
cd ctci/javascript
npm install
npm install -g mocha
mocha --recursive
Run Code Online (Sandbox Code Playgroud)
它看起来像你npm install在没有a的目录中运行package.json.npm绝对不知道你想要它安装什么,除非你传递它的参数(比如npm install express)或者在一个目录中运行它package.json.该文档上npm install解释了这一切.
| 归档时间: |
|
| 查看次数: |
7331 次 |
| 最近记录: |