{ "scripts" :
{ "build": "node build.js"}
}
npm run buildORnpm run-script build
{
"name": "build",
"version": "1.0.0",
"scripts": {
"start": "node build.js"
}
}
npm start
NB: you were missing the
{ brackets }and the node command
folder structure is fine:
+ build
- package.json
- build.js