I'm trying to create a command to compile scss into css more easily.
I installed nodejs, npm and node-sass
I joined my project and rode the command
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 ran the command:
npm run scss
and then I get the following error:
> [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\_logs18-11-
01T15_04_15_598Z-debug.log
I use windows 7 64bit node v10.13.0 npm 6.4.1