ClarkySmiverz77
ClarkySmiverz77

Reputation: 203

Installing NPM - missing script: start

I'm currently having problems starting NPM. I've installed along with Node.JS.

When I Run 'npm start' via Command Prompt I recieve the following ...

C:\Users\bobbyy>npm start npm ERR! missing script: start

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\bobby\AppData\Roaming\npm-cache_logs\2017-03-29T21_36_56_974Z-debug.log

Can someone please advise what should be in 'package.json' start?

Upvotes: 1

Views: 4966

Answers (1)

Maja Savić
Maja Savić

Reputation: 39

Write a code in package.json file as below

"scripts": {
    "start": "node your-script.js",
    "test": "echo \"Error: no test specified\" && exit 1"
  },

Copied from github forum Hope It works for you.

Upvotes: 0

Related Questions