来自终端的npm安装错误

用户名

我正在尝试在Mac中安装节点。.我遇到以下错误...我从节点站点下载了该节点并运行了该软件包...你们能告诉我为什么我要面对这个错误吗?。当我这样做时npm安装

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 install”将查找package.json中列出的依赖项。您收到的错误提示您没有设置package.json文件(或者您位于错误的目录中)。

如果您要安装特定的软件包,则应使用“ npm install {软件包名称}”。有关命令的更多信息,请参见此处

否则,您将需要为依赖项创建一个package.json文件,或者转到正确的目录,然后运行“ npm install”。

本文收集自互联网,转载请注明来源。

如有侵权,请联系[email protected] 删除。

编辑于
0

我来说两句

0条评论
登录后参与评论

相关文章