鍍金池/ 問(wèn)答/HTML/ node npm報(bào)錯(cuò)

node npm報(bào)錯(cuò)

npm ERR! Windows_NT 10.0.16299
npm ERR! argv "G:\Program Files\nodejs\node.exe" "G:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "run" "build"
npm ERR! node v6.10.3
npm ERR! npm v3.10.10

npm ERR! missing script: build
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/is...

npm ERR! Please include the following file with any support request:
npm ERR! E:nodedemo2npm-debug.log

報(bào)錯(cuò),這個(gè)怎么改

回答
編輯回答
薄荷綠

樓上正解

2018年6月1日 05:51
編輯回答
大濕胸

兄dei 先搞清楚package.json的參數(shù) 再起飛嘛

2018年9月7日 14:16
編輯回答
心夠野
npm ERR! missing script: build

你的package.json中的script并沒(méi)有定義build

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"build": "supervisor -w server,build,server.js -e js,html server",

},

2017年11月30日 04:46