npm script onchange 在文件更改时无法处理脚本
我正在使用 npm script onchange
但这根本不起作用。我已经安装了 7.1.0
这是我的文件夹结构 文件夹结构可以从这里看到
,我使用的脚本和依赖项如下
"scripts": {
"start": "npm run watch:css",
"test": "echo \"Error: no test specified\" && exit 1",
"scss": "node-sass -o css/ css/scss-styles.scss",
"watch:css": "onchange \"css/*.scss\" -- npm run scss"
},
"devDependencies": {
"font-awesome": "^4.7.0",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.11.0",
"onchange": "^7.1.0",
"node-sass": "^7.0.1",
"parallelshell": "^3.0.2"
}
:我运行 npm start 它卡住并闪烁光标,然后我更改文件,然后没有脚本正在运行。
我无法解决这个问题。帮帮我吧。
I am using npm script onchange
but this is not working at all. I have installed 7.1.0
this is my folder structure
Folder Structure can be seen from here
and the scripts and dependencies that I am using are as follows
"scripts": {
"start": "npm run watch:css",
"test": "echo \"Error: no test specified\" && exit 1",
"scss": "node-sass -o css/ css/scss-styles.scss",
"watch:css": "onchange \"css/*.scss\" -- npm run scss"
},
"devDependencies": {
"font-awesome": "^4.7.0",
"npm-run-all": "^4.1.5",
"npm-watch": "^0.11.0",
"onchange": "^7.1.0",
"node-sass": "^7.0.1",
"parallelshell": "^3.0.2"
}
when I run npm start
it stuck and blinks the cursor then I change the file then there is no script being run.
I am unable to solve this problem. Help me out.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论