Grunt dependencies conflicts in Bootstrap

前端 未结 6 2074
滥情空心
滥情空心 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:01

    I encountered the same problem. Performing the following:

    bower install bootstrap
    cd bower_components/bootstrap
    npm install
    

    Resulted in:

    npm ERR! peerinvalid The package grunt does not satisfy 
       its siblings' peerDependencies requirements!
    

    I resolved this by first uninstalling grunt from the bootstrap directory

    npm uninstall grunt
    

    Then I installed grunt 0.4.2

    npm install grunt@0.4.2
    

    This time, npm install worked just fine

    npm install
    

提交回复
热议问题