sass - 安装 parallelshell@3.0.2 和 onchange@7.1.0 后尝试运行 npm start 时遇到问题
问题描述
这是我的 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"
}
}
这是我得到的错误,请帮助!
解决方案
这是parallelshell版本的问题,写这个:
npm install --save-dev onchange@3.3.0 parallelshell@3.0.1
它会解决你的问题。
推荐阅读
- java - Lambda 函数退出失败
- wordpress - 如何在 WPForms 插件表单 WordPress 中禁用滚动效果
- mongodb - Mongodb sh.status() 显示不存在的数据库和分片
- javascript - 查找前一个元素的动态子元素
- javascript - 如何在 JavaScript 函数类中编辑属性?
- windows - NPM 脚本并发,不使用工作目录,但默认使用主目录(Windows)
- python - 从 GitHub 解析数据集
- excel - VBA Excel - 宏范围语法问题
- node.js - Angular 通用服务器错误:使用默认后备时,必须在配置中提供后备语言
- wordpress - wordpress 页面上的 img 标签在实时站点上突然出现错误,解析错误:语法错误,front-page.php 中的意外 '('