【问题标题】:Facing problem while trying to run npm start after installing parallelshell@3.0.2 and onchange@7.1.0安装 parallelshell@3.0.2 和 onchange@7.1.0 后尝试运行 npm start 时遇到问题
【发布时间】:2021-03-09 23:38:05
【问题描述】:

这是我的 package.json 文件 -->

{
  "name": "aboutus",
  "version": "1.0.0",
  "description": "This is a website for Ristorante Con Fusion",
  "main": "index.html",
  "scripts": {
    "start": "npm run watch:all",
    "test": "echo \"Error: no test specified\" && exit 1",
    "lite": "lite-server",
    "scss": "node-sass -o css/ css/",
    "watch:scss": "onchange \"css/*.scss\" --npm run scss",
    "watch:all": "parallelshell \"npm run watch:scss\" \"npm run lite\" "
  },
  "author": "",
  "license": "ISC",
  "devDependencies": {
    "lite-server": "^2.3.0",
    "node-sass": "^5.0.0",
    "onchange": "^7.1.0",
    "parallelshell": "^3.0.2"
  },
  "dependencies": {
    "bootstrap": "^4.0.0",
    "bootstrap-social": "^5.1.1",
    "font-awesome": "^4.7.0",
    "jquery": "^3.3.1",
    "popper.js": "^1.16.1"
  }
}

这是我遇到的错误,请帮忙!

【问题讨论】:

    标签: sass node-modules web-deployment onchange npm-scripts


    【解决方案1】:

    是parallelshell版本的问题,这样写:

    npm install --save-dev onchange@3.3.0 parallelshell@3.0.1
    

    它会解决你的问题。

    【讨论】:

      猜你喜欢
      • 2021-07-04
      • 1970-01-01
      • 2012-08-08
      • 2020-06-28
      • 2022-08-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-07-20
      相关资源
      最近更新 更多