ejs
ejs copied to clipboard
only ejs npm not getting installed using git bash
[email protected] postinstall C:\Users\BHAVE\Desktop\backend1\node_modules\ejs node --harmony ./postinstall.js
npm WARN [email protected] No description npm WARN [email protected] No repository field.
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn C:\MinGW\bin
npm ERR! file C:\MinGW\bin
npm ERR! path C:\MinGW\bin
npm ERR! errno ENOENT
npm ERR! [email protected] postinstall: node --harmony ./postinstall.js
npm ERR! spawn C:\MinGW\bin ENOENT
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\BHAVE\AppData\Roaming\npm-cache_logs\2020-06-27T01_54_42_532Z-debug.log
What version of NodeJs and NPM do you have?
npm version =6.14.4 and nodejs version will be =12.16.3
Facing the same error.
so what is the solution!?
I thought maybe it had something to do with version 3.1.3 specifically, but I'm also getting it with version 2.7.4 :/ Only version 2.7.2 and lower still work
Seems to be related to unsafe-perm in lifecycle false
. I resolved it by using npm install -g ejs --unsafe-perm
.