1
I’m trying to create a command for compile scss in css more easily.
I installed nodejs, npm and Node-Sass
I got into my project and ran the remote
npm init
My package.json looks like this:
{
"name": "piattino",
"version": "1.0.0",
"description": "Documenação do site piattivo.com.br",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"scss": "node-sass -watch scss -o css"
},
"author": "",
"license": "ISC"
}
after that I circled the command:
npm run scss
and then I get the following mistake:
> [email protected] scss C:\Users\bruno\projetos\piattino
> node-sass -watch scss -o css
'node-sass' n▒o ▒ reconhecido como um comando interno
ou externo, um programa oper▒vel ou um arquivo em lotes.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] scss: `node-sass -watch scss -o css`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] scss script.
npm ERR! This is probably not a problem with npm. There is likely additional
logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean
to install?
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\bruno\AppData\Roaming\npm-cache\_logs\2018-11-
01T15_04_15_598Z-debug.log
use windows 7 64bits Node V10.13.0 npm 6.4.1
I believe you probably forgot to install Node-Sass. Use the command
npm i node-sass
.– Christian Luã Lemos