因此,在本地编译sass的过程中,我在终端窗口中遇到了一个无法消除的错误。 这是我不断收到的错误消息:
MacBook-Pro:sass nicolas$ npm run compile:sass
npm ERR! missing script: compile:sass
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/nicolas/.npm/_logs/2019-07-16T21_56_35_428Z-debug.log
这是package.json文件:
{
"name": "natours",
"version": "1.0.0",
"description": "Landing page for natours",
"main": "index.js",
"scripts": {
"compile:sass": "node-sass sass/main.scss css/style.css"
},
"author": "Nicolas",
"license": "ISC",
"devDependencies": {
"node-sass": "^4.12.0"
}
}
有人知道我为什么不断收到此错误吗?如果是这样,我该如何解决?