prevent “abort” in windows batch for npm install

前端 未结 1 854
陌清茗
陌清茗 2020-12-16 09:49

I am writing a bat file to auto install npm packages and install compass. The bat is simple as below:

npm install -g bower
npm install -g grunt-cli
npm insta         


        
相关标签:
1条回答
  • 2020-12-16 10:27

    Possibly the npm program is a batch file itself.
    Then you need to use call, as only then the program control returns to the caller.

    call npm install -g bower
    call npm install -g grunt-cli
    call npm install
    call gem update --system --verbose
    call gem install compass --verbose
    pause
    
    0 讨论(0)
提交回复
热议问题