Solucionado (ver solução)
Solucionado
(ver solução)
2
respostas

npm ERR! missing script: watch

Estou tendo o seguinte erro ao tentar executar a compilação dos arquivos do projeto.

0 info it worked if it ends with ok
1 verbose cli [ '/home/msl09/local-installation/node-v8.9.3-linux-x64/bin/node',
1 verbose cli   '/home/msl09/local-installation/node-v8.9.3-linux-x64/bin/npm',
1 verbose cli   'run',
1 verbose cli   'watch' ]
2 info using npm@5.5.1
3 info using node@v8.9.3
4 verbose stack Error: missing script: watch
4 verbose stack     at run (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/lib/run-script.js:151:19)
4 verbose stack     at /home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/lib/run-script.js:61:5
4 verbose stack     at /home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
4 verbose stack     at /home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:402:5
4 verbose stack     at checkBinReferences_ (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:357:45)
4 verbose stack     at final (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:400:3)
4 verbose stack     at then (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
4 verbose stack     at ReadFileContext.<anonymous> (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/read-package-json/read-json.js:332:20)
4 verbose stack     at ReadFileContext.callback (/home/msl09/local-installation/node-v8.9.3-linux-x64/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16)
4 verbose stack     at FSReqWrap.readFileAfterOpen [as oncomplete] (fs.js:420:13)
5 verbose cwd /home/msl09/Dropbox/workspace-work/alura/webpack
6 verbose Linux 4.9.0-5-amd64
7 verbose argv "/home/msl09/local-installation/node-v8.9.3-linux-x64/bin/node" "/home/msl09/local-installation/node-v8.9.3-linux-x64/bin/npm" "run" "watch"
8 verbose node v8.9.3
9 verbose npm  v5.5.1
10 error missing script: watch
11 verbose exit [ 1, true ]
2 respostas
solução!

Oi Marcelo, tudo bem? Cola seu package.json aqui pra gente ver e diz também como está tentando executar essa "compilação", por favor?

Erro meu wanderson, eu estava executando o npm start a partir da pasta do projeto do grunt