ejs icon indicating copy to clipboard operation
ejs copied to clipboard

only ejs npm not getting installed using git bash

Open Rahul634 opened this issue 4 years ago • 6 comments

[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

Rahul634 avatar Jun 27 '20 01:06 Rahul634

What version of NodeJs and NPM do you have?

mde avatar Jun 27 '20 07:06 mde

npm version =6.14.4 and nodejs version will be =12.16.3

Rahul634 avatar Jun 29 '20 07:06 Rahul634

Facing the same error.

shreyabhat22 avatar Jun 30 '20 09:06 shreyabhat22

so what is the solution!?

Rahul634 avatar Jul 08 '20 06:07 Rahul634

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

skerit avatar Jul 16 '20 19:07 skerit

Seems to be related to unsafe-perm in lifecycle false. I resolved it by using npm install -g ejs --unsafe-perm.

meanderix avatar Jul 24 '20 17:07 meanderix