sudo npm install giving error ?

This is my npm-debug.log file

  Preformatted text 0 info it worked if it ends with ok
   1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
   2 info using npm@3.5.2
   3 info using node@v8.10.0
   4 verbose stack Error: missing script: start
   4 verbose stack     at run (/usr/share/npm/lib/run-script.js:147:19)
   4 verbose stack     at /usr/share/npm/lib/run-script.js:57:5
   4 verbose stack     at /usr/share/npm/node_modules/read-package-json/read-json.js:345:5
   4 verbose stack     at checkBinReferences_ (/usr/share/npm/node_modules/read-package-       json/read-json.js:309:45)
4 verbose stack     at final (/usr/share/npm/node_modules/read-package-json/read-json.js:343:3)
4 verbose stack     at then (/usr/share/npm/node_modules/read-package-json/read-json.js:113:5)
4 verbose stack     at /usr/share/npm/node_modules/read-package-json/read-json.js:300:12
4 verbose stack     at /usr/share/npm/node_modules/graceful-fs/graceful-fs.js:76:16
4 verbose stack     at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:511:3)
5 verbose cwd /home/ubuntu/test-final
6 error Linux 4.15.0-1043-aws
7 error argv "/usr/bin/node" "/usr/bin/npm" "start"
8 error node v8.10.0
9 error npm  v3.5.2
10 error missing script: start
11 error If you need help, you may report this error at:
11 error     <https://github.com/npm/npm/issues>
12 verbose exit [ 1, true ]

What command are you running? Your title says install, but the log shows start?

npm start is a shortcut for npm run start and executes the start script from your package.json.

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.