when i am testing a nodejs file . i run "npm build ‘ it says "npm ERR! missing script: build" and the erroe log is like this 0 info it worked if it ends with ok 1 verbose cli [ 1 verbose cli 'V:\\ssdad\\node\\node.exe', 1 verbose cli 'V:\\ssdad\\node\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'run', 1 verbose cli 'build' 1 verbose cli ] 2 info using npm@6.14.13 3 info using node@v14.17.3 4 verbose stack Error: missing script: build 4 verbose stack at run (V:\ssdad\node\node_modules\npm\lib\run-script.js:155:19) 4 verbose stack at V:\ssdad\node\node_modules\npm\lib\run-script.js:63:5 4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:116:5 4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:436:5 4 verbose stack at checkBinReferences_ (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:391:45) 4 verbose stack at final (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:434:3) 4 verbose stack at then (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:161:5) 4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:377:16 4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:123:16 4 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3) 5 verbose cwd E:\wll-master\tokl\node_modules 6 verbose Windows_NT 10.0.19042 7 verbose argv "V:\\ssdad\\node\\node.exe" "V:\\ssdad\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "build" 8 verbose node v14.17.3 9 verbose npm v6.14.13 10 error missing script: build 11 verbose exit [ 1, true ]’ ------------------- this is my package .json how could i fix it ? i use npm audit fix .no use
when i am testing a nodejs file .
i run "npm build ‘
it says "npm ERR! missing script: build"
and the erroe log is like this
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli 'V:\\ssdad\\node\\node.exe',
1 verbose cli 'V:\\ssdad\\node\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli 'run',
1 verbose cli 'build'
1 verbose cli ]
2 info using npm@6.14.13
3 info using node@v14.17.3
4 verbose stack Error: missing script: build
4 verbose stack at run (V:\ssdad\node\node_modules\npm\lib\run-script.js:155:19)
4 verbose stack at V:\ssdad\node\node_modules\npm\lib\run-script.js:63:5
4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:116:5
4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:436:5
4 verbose stack at checkBinReferences_ (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:391:45)
4 verbose stack at final (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:434:3)
4 verbose stack at then (V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:161:5)
4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\read-package-json\read-json.js:377:16
4 verbose stack at V:\ssdad\node\node_modules\npm\node_modules\graceful-fs\graceful-fs.js:123:16
4 verbose stack at FSReqCallback.readFileAfterClose [as oncomplete] (internal/fs/read_file_context.js:73:3)
5 verbose cwd E:\wll-master\tokl\node_modules
6 verbose Windows_NT 10.0.19042
7 verbose argv "V:\\ssdad\\node\\node.exe" "V:\\ssdad\\node\\node_modules\\npm\\bin\\npm-cli.js" "run" "build"
8 verbose node v14.17.3
9 verbose npm v6.14.13
10 error missing script: build
11 verbose exit [ 1, true ]’
-------------------
this is my package .json
how could i fix it ?
i use npm audit fix .no use
Trending now
This is a popular solution!
Step by step
Solved in 2 steps with 2 images