我怎样才能使npm从另一个目录开始? [英] How can I get npm start at a different directory?
本文介绍了我怎样才能使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?
推荐答案
这种一线工作:
npm start --prefix path/to/your/app
这篇关于我怎样才能使npm从另一个目录开始?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文