generator-node-restify-mongodb
generator-node-restify-mongodb copied to clipboard
bunyan issue ;- "'.' is not recognized as an internal or external command, operable program or batch file."
I have generated the project and wanted to start the app. Here is the error I am getting.
$ npm start
> [email protected] start C:\hapi\node-restify-mongodb
> node app.js | ./node_modules/bunyan/bin/bunyan
'.' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 255
npm ERR! [email protected] start: `node app.js | ./node_modules/bunyan/bin/bunyan`
npm ERR! Exit status 255
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
Here is my package version details
Node v9.8.0
npm 5.6.0
bunyan 1.8.12
Can you please take a look?
My first thought is your on Windows and the ./node_modules/bunyan/bin/bunyan command is the problem (the ./ is the issues with Windows)?
Yes that looks like it. I tried node app.js
and it worked. Thank you!
node app.js is giving me another error I have the same problem. I have tried uninstalling Bunyan and removing code that requires it but the problem persists.
try "node app.js | bunyan"