我已经从官方网站下载了Bootstrap源文件,并且在使用node的安装项目时遇到了依赖冲突npm
。我已经grunt 0.4.3
在我的机器上安装了,但是需要一些引导依赖项0.4.0
和一些0.4.1
。
该npm install -g grunt-cli
命令没有任何问题执行。这是执行npm install
命令后得到的日志:
npm ERR! peerinvalid The package grunt does not satisfy its siblings' peerDependencies requirements!
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.0
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.2
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants [email protected]
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4.1
npm ERR! peerinvalid Peer [email protected] wants grunt@~0.4
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install"
npm ERR! cwd C:\Users\\Desktop\bootstrap-3.1.1
npm ERR! node -v v0.10.15
npm ERR! npm -v 1.3.5
npm ERR! code EPEERINVALID
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\Users\\Desktop\bootstrap-3.1.1\npm-debug.log
npm ERR! not ok code 0
我正在按照以下安装步骤进行操作。
如何干净地安装此项目,没有任何错误?
我今天早上也遇到了这个问题。我最终将Bootstrap的package.json文件中的第30行更改为:从“〜0.4.2”更改为“ 0.4.2”:
27 "devDependencies": {
...
30 "grunt" : "0.4.2"
这意味着0.4.3不再与依赖关系规范匹配,但也意味着您以后将不再安装新版本的grunt。这足以使一切正常运行,但您最终可能应该将其更改回原样(也许在您的下一个引导项目中将其保留)。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句