【发布时间】:2015-02-26 10:17:24
【问题描述】:
我的机器上安装了 node.js,我安装了版本:v0.12.0。当我使用 sudo npm 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.6.0
npm ERR! path /Users/aston.haigh/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno -2
npm ERR! package.json ENOENT, open '/Users/aston.haigh/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/aston.haigh/Projects/astonhaigh.co.uk/npm-debug.log
我试过清除节点缓存,更新节点,但没有运气,有什么想法吗?
【问题讨论】:
标签: javascript angularjs node.js installation