generator-node-restify-mongodb icon indicating copy to clipboard operation
generator-node-restify-mongodb copied to clipboard

bunyan issue ;- "'.' is not recognized as an internal or external command, operable program or batch file."

Open demesew opened this issue 6 years ago • 4 comments

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?

demesew avatar Mar 22 '18 21:03 demesew

My first thought is your on Windows and the ./node_modules/bunyan/bin/bunyan command is the problem (the ./ is the issues with Windows)?

garystafford avatar Mar 22 '18 23:03 garystafford

Yes that looks like it. I tried node app.js and it worked. Thank you!

demesew avatar Mar 23 '18 11:03 demesew

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.

NickBordone avatar Jun 07 '19 14:06 NickBordone

try "node app.js | bunyan"

donmilorad87 avatar May 27 '23 22:05 donmilorad87