Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

安装后不认识命令npm-run-all #238

Open
dong-lufei opened this issue Jul 24, 2022 · 1 comment
Open

安装后不认识命令npm-run-all #238

dong-lufei opened this issue Jul 24, 2022 · 1 comment

Comments

@dong-lufei
Copy link

npm-run-all : 无法将“npm-run-all”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。

@takegine
Copy link

需要在项目内的命令中使用。
比如你是 npm i --dev npm-run-all
那么在 package.scripts 就可以写 “dev”: “run-p dev:*” ,
(correct) 然后就可以执行
npm run dev

(wrong) 而不能直接在终端执行
run-p dev:*


another way
另一种我没有尝试过的办法,需要安装为全局对象。npm i -g npm-run-all

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants