我怎样才能使npm从另一个目录开始?
问题描述:
我通常cd
进入应用目录,然后运行npm start
.
I usually cd
into the app directory and then run npm start
.
我觉得应该使用某种方法使用路径参数运行npm start
.但是, npm启动文档不包含此类功能.
It is my feeling that there ought to be some way to run npm start
with a path parameter. But, the npm start documentation contains no such feature.
我尝试自己只是发现npm start ./myapp
不起作用.有办法吗?
I tried myself only to find npm start ./myapp
does not work. Is there a way to do that?