npm - 运行脚本时缺少 NPM 命令
问题描述
我在package.json
下面有这个文件:
{
"name": "ztm-stripe-app",
"version": "1.0.0",
"engines": {
"node": "12.18.3",
"npm": "6.14.6"
},
"scripts": {
"client": "cd client && npm start",
"server": "nodemon server.js",
"build": "cd client && npm run build",
"dev": "concurrently --kill-others-on-fail \"npm server\" \"npm client\"",
"start": "node server.js",
"heroku-postbuild": "cd client && npm install && npm install --only=dev --no-shrinkwrap && npm run build"
},
"dependencies": {
"body-parser": "^1.19.0",
"compression": "^1.7.4",
"concurrently": "^6.2.0",
"dotenv": "^10.0.0",
"express": "^4.17.1",
"nodemon": "^2.0.12",
"stripe": "^8.161.0"
}
}
当我运行时,npm run dev
我收到一条错误消息,说concurently is not an NPM command。当我签入node_modules
文件夹时,我可以看到它确实安装在本地和全局上。
有任何想法吗?
解决方案
推荐阅读
- java - 如何在 CollapsingToolbar 中添加过渡文本
- c# - 在 https://olb2c.b2clogin.com/olb2c.onmicrosoft.com/b2c_1_si_olp/v2.0/.well-known/openid-configuration 访问 XMLHttpRequest 时出现错误 404
- wordpress - 如何将活动的 CSS 类添加到当前页面但不用于书签菜单项
- reactjs - 使用 TS 在 RN 中设置类型
- excel - 在 VBA 中使用 selenium chrome webdriver 从本地 HTML 文件中获取 HTML
- r - 如何将所有值转换为十亿数据框?
- php - 如何使用php将文件上传到谷歌云存储桶中的子文件夹
- c++ - 在单词搜索中获取 TLE
- sql - SQL Server:如何根据查询返回的列更新表?
- session - 在 Coldfusion 中更改密码时如何注销其他会话