buzz-software / expressjs-mvp-landing-page

Learn web app development by building a landing page and collecting sales leads using ExpressJS
77 stars 59 forks source link

nodemon not worked #1

Open bawantha opened 5 years ago

bawantha commented 5 years ago

"start": "if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi"

get error `> if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi

$NODE_ENV was unexpected at this time. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! wifidev@0.0.0 start: if [[ $NODE_ENV == 'production' ]]; then node ./bin/www; else nodemon ./bin/www; fi npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the wifidev@0.0.0 start script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\brajapaksha\AppData\Roaming\npm-cache_logs\2019-07-18T12_37_08_458Z-debug.log

`

Anekenonso commented 4 years ago

Can you provide Additional logs, it will help to know what the problem is.

ahmadlb-maker commented 4 years ago

I got the same error but I changed it to : "scripts": { "start": "node ./bin/www", "dev": "nodemon ./bin/www" }, it works for me I'm using "yarn dev" and "npm run dev" for npm.