So running either node server.js
or npm start
both work and do the same thing... without my customized port. I do have a prod.config.json
defined, so if I run npm start --production
then it runs with the correct port.
Running npm run jsreport
gives me an error:
> jsreport-server@ jsreport [project-path]
> jsreport
: No such file or directory
npm ERR! Linux 3.10.0-862.3.2.el7.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "run" "jsreport"
npm ERR! node v6.14.2
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! jsreport-server@ jsreport: `jsreport`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the jsreport-server@ jsreport script 'jsreport'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the jsreport-server package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! jsreport
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs jsreport-server
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls jsreport-server
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! [project-path]/npm-debug.log
I'm assuming given what we've assessed so far this is not surprising?