我无法让npm工作.我的Package.json文件
"scripts": { "build": "build.js" }
我有个身材.js文件位于与控制台相同的文件夹中.日志(log).
当我跑的时候
npm run build
我明白了
The system cannot execute the specified program.
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
npm ERR! node v4.1.1
npm ERR! npm v3.3.5
npm ERR! code ELIFECYCLE
如果我移动建筑.js文件并更改我的包.json文件有一个子文件夹
"scripts": { "build": "build/build.js" }
then 我明白了
'build' is not recognized as an internal or external command, operable program or batch file.
怎么了?我在抄example documentation.