fabcar-blockchain-sample icon indicating copy to clipboard operation
fabcar-blockchain-sample copied to clipboard

npm start command is giving issue

Open deepakbajaj opened this issue 4 years ago • 2 comments

Hi Team,

We're getting the following error, while following the step 7, any idea how to resolve it.

[email protected] start C:\Sapna\ContainerCrush\Hyperledger\fabcar-blockchain-sample\web-app\server ./node_modules/nodemon/bin/nodemon.js src/app.js '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: ./node_modules/nodemon/bin/nodemon.js src/app.js npm ERR! Exit status 1 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. npm ERR! A complete log of this run can be found in:

deepakbajaj avatar Jun 24 '20 18:06 deepakbajaj

Hi Team,

I followed 7 steps respectively too, I encounter same issue. Thank you for your interest.

C:\Users\Asus\fabcar-blockchain-sample\web-app\server>npm start

[email protected] start C:\Users\Asus\fabcar-blockchain-sample\web-app\server ./node_modules/nodemon/bin/nodemon.js src/app.js '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: ./node_modules/nodemon/bin/nodemon.js src/app.js npm ERR! Exit status 1 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. npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Asus\AppData\Roaming\npm-cache_logs\2020-10-14T13_48_27_834Z-debug.log

Burak-Dalkilic avatar Oct 14 '20 13:10 Burak-Dalkilic

Hi Team,

We're getting the following error, while following the step 7, any idea how to resolve it.

[email protected] start C:\Sapna\ContainerCrush\Hyperledger\fabcar-blockchain-sample\web-app\server ./node_modules/nodemon/bin/nodemon.js src/app.js '.' is not recognized as an internal or external command, operable program or batch file. npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] start: ./node_modules/nodemon/bin/nodemon.js src/app.js npm ERR! Exit status 1 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. npm ERR! A complete log of this run can be found in:

Firstly, ensure you have nodemon installed; npm i nodemon -S.

Then, edit the start script in your package.json to this,

"start": "./node_modules/.bin/nodemon src/app.js --exec "npm run lint && node"", "lint": "./node_modules/.bin/eslint "**/*.js"", "test": "echo "Error: no test specified" && exit 1"

Burak-Dalkilic avatar Oct 26 '20 12:10 Burak-Dalkilic