我想安装一些比如快速的应用程序我已经下载的依赖,但所有的应用程序抛出了同样的错误:NPM找不到的package.json
c:\node\stylus>npm install -d
npm info it worked if it ends with ok
npm info using [email protected]
npm info using [email protected]
npm ERR! Couldn't read dependencies.
npm ERR! Error: ENOENT, no such file or directory 'c:\node\stylus\package.json'
npm ERR! You may report this log at:
npm ERR! <http://github.com/isaacs/npm/issues>
npm ERR! or email it to:
npm ERR! <[email protected]>
npm ERR!
npm ERR! System Windows_NT 6.1.7600
npm ERR! command "C:\\Program Files (x86)\\nodejs\\\\node.exe" "C:\\Program File
s (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-d"
npm ERR! cwd c:\node\stylus
npm ERR! node -v v0.6.11
npm ERR! npm -v 1.1.1
npm ERR! path c:\node\stylus\package.json
npm ERR! code ENOENT
npm ERR! message ENOENT, no such file or directory 'c:\node\stylus\package.json'
npm ERR! errno {}
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! c:\node\stylus\npm-debug.log
npm not ok
有谁知道什么可能成为这个问题的根源?
我运行:
- 的Windows 7 64位
- NPM 1.1.1
- 节点6.11
- 表达2.5.8
你是如何下载软件包的?你可以按照通常的方式安装它们吗(例如'npm install'? –
2012-02-28 15:47:51
我还没有尝试过,因为我不知道应用程序中使用了哪些软件包。我怎么才能找到这个,所以我可以尝试安装他们手动? – imjp 2012-02-28 15:49:02
'npm view''会显示'package.json'以及依赖关系。另外,'npm help'是你的朋友。 –
2012-02-28 15:53:19