How can I get npm start at a different directory?

后端 未结 6 1101
野的像风
野的像风 2020-12-07 08:11

I usually cd into the app directory and then run npm start.

It is my feeling that there ought to be some way to run npm start

6条回答
  •  佛祖请我去吃肉
    2020-12-07 08:28

    Below Command where project is a folder which contains package.json file

    npm run --prefix project ${COMMAND}
    

    is working as well. Useful in Docker based applications.

提交回复
热议问题