1

How to start my package.json

My index.js in "client/js/index.js"

"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"start": "????"
}
Gabrielle
  • 19
  • 1

2 Answers2

2

In order to start the index.js file:

"start": "node client/js/index.js"

To run:

npm start 
Majed Badawi
  • 27,616
  • 4
  • 25
  • 48
0

As this is a node project your start should look like this:

"scripts": {
  "test": "echo \"Error: no test specified\" && exit 1",
  "start": "node client/js/index.js"
}

you can then run

npm start
Get Off My Lawn
  • 34,175
  • 38
  • 176
  • 338