What is colon : in npm script names?

后端 未结 3 1568
滥情空心
滥情空心 2020-12-15 17:26

Trying to figure out what putting : in an npm script name does. For example:

package.json

\"test:ci\": \"rest of script\"
         


        
3条回答
  •  既然无缘
    2020-12-15 17:51

    I solved this by running - "npm run "

    Within my package.json file, I had two "start scripts"

    start: nodemon server.js

    start:elasticsearch: docker run elasticsearch..

    Solved with npm run start:elasticsearch

提交回复
热议问题