Grunt dependencies conflicts in Bootstrap

前端 未结 6 2081
滥情空心
滥情空心 2021-01-31 07:36

I\'ve downloaded Bootstrap source files from the official website and I\'m getting dependency conflicts when installing the project using node\'s npm. I have

6条回答
  •  佛祖请我去吃肉
    2021-01-31 08:13

    I ran into this problem this morning too. I ended up changing line 30 in Bootstrap's package.json file: from "~0.4.2" to "0.4.2":

    27  "devDependencies": {
    ...
    30    "grunt" : "0.4.2"
    

    This means that 0.4.3 no longer matches the dependency spec but it also means you won't install new versions of grunt later. It's enough to get things working but you should probably change it back eventually (maybe in your next bootstrap project leave it alone).

提交回复
热议问题