【发布时间】:2014-04-22 03:03:20
【问题描述】:
我正在尝试在我的 mac 中安装节点.. 我收到以下错误... 我从节点站点下载了节点并运行了那个包... 你们能告诉我为什么我会遇到那个错误吗..当我执行 npm install 时
MacBook-Pro:~ Raj$ npm install
npm ERR! install Couldn't read dependencies
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! System Darwin 13.0.0
npm ERR! command "node" "/usr/local/bin/npm" "install"
npm ERR! cwd /Users/Raj
npm ERR! node -v v0.10.26
npm ERR! npm -v 1.4.3
npm ERR! path /Users/Raj/package.json
npm ERR! code ENOPACKAGEJSON
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /Users/Raj/npm-debug.log
npm ERR! not ok code 0
【问题讨论】:
-
您能详细说明您要做什么吗?如果
npm完全运行,则意味着node已经安装。npm install用于安装包。
标签: javascript node.js angularjs backbone.js npm