loopback4-example-microservices icon indicating copy to clipboard operation
loopback4-example-microservices copied to clipboard

Error when Npm I

Open waytoharish opened this issue 7 years ago • 6 comments

Getting below issue when when running npm i with version- C:\Harish\DIP\loopback4\loopback4-example-microservices>node -v v9.11.2

C:\Harish\DIP\loopback4\loopback4-example-microservices>npm -v 5.6.0

Below is error log --

[email protected] postinstall C:\Harish\DIP\loopback4\loopback4-example-microservices bin/install

'bin' 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] postinstall: bin/install npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall 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\HarishSharma\AppData\Roaming\npm-cache_logs\2018-12-04T12_23_52_564Z-debug.log

waytoharish avatar Dec 04 '18 12:12 waytoharish

I have the same problem, I use node 11.6.0, npm 6.4.1 in windows 10 with vscode.

andenis avatar Jan 07 '19 23:01 andenis

I have some problem. What I must to do?

pavelgronsky avatar Feb 23 '19 14:02 pavelgronsky

Ok, Problem is solved. I'm add only path to git bash.exe npm config set script-shell "C:\Program Files\git\bin\bash.exe"

pavelgronsky avatar Feb 24 '19 12:02 pavelgronsky

@pavelgronsky Thank you for providing the solution! @waytoharish @andenis You could try https://github.com/strongloop/loopback4-example-microservices/issues/100#issuecomment-466770427, let me know if you still have the problem.

jannyHou avatar Feb 25 '19 15:02 jannyHou

Problem happens also in Linux. How to solve it?

huyqpham avatar Mar 19 '19 02:03 huyqpham

Just replace the postinstall in the package.json by: postinstall: "cd services/account && npm i && cd ../customer && npm i && cd ../transaction && npm i && cd ../facade && npm i"

ESSA-6904 avatar Jul 16 '19 09:07 ESSA-6904