ngx-admin icon indicating copy to clipboard operation
ngx-admin copied to clipboard

NodeJS Version

Open borodatych opened this issue 4 years ago • 6 comments

Issue type

I'm submitting a ... (check one with "x")

  • [ ] bug report
  • [x] feature request
  • [ ] question about the decisions made in the repository

Issue description

Current behavior: I had NodeJS 13.14.0 Failed to execute neither npm i nor npm ci

10240 error gyp ERR! cwd D:\Projects\Javascript\Angular\ngx-admin\node_modules\node-sass
10240 error gyp ERR! node -v v13.14.0
10240 error gyp ERR! node-gyp -v v7.1.2
10240 error gyp ERR! not ok
10240 error Build failed with error code: 1
10241 verbose exit 1

Current node-sass:

package.json
https://github.com/akveo/ngx-admin/blob/master/package.json#L65

package-lock.json
https://github.com/akveo/ngx-admin/blob/master/package-lock.json#L13748

https://github.com/sass/node-sass :

Below is a quick guide for minimum and maximum supported versions of node-sass:

NodeJS Supported node-sass version Node Module
Node 16 6.0+ 93
Node 15 5.0+ 88
Node 14 4.14+ 83
Node 13 4.13+, <5.0 79
Node 12 4.12+ 72
Node 11 4.10+, <5.0 67
Node 10 4.9+, <6.0 64
Node 8 4.5.3+, <5.0 57
Node <8 <5.0 <57

NEED Node 12!! You didn't say a word about it ((

Expected behavior:

Some issues need review, and may require choosing
a different dependency.

Steps to reproduce:

$ node -v
v13.14.0
$ git clone https://github.com/akveo/ngx-admin.git
$ cd ngx-admin && npm i

Other information:

npm, node, OS, Browser

Node, npm: `v13.14.0` and `7.20.5`
OS: Windows 10 Home
Browser: Chrome

borodatych avatar Aug 09 '21 08:08 borodatych

I have the same error

npm ERR! gyp ERR! cwd D:\workspace\metronic\ngx-admin\node_modules\node-sass
npm ERR! gyp ERR! node -v v14.17.5
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

FARHANE avatar Sep 07 '21 09:09 FARHANE

I have the same error

npm ERR! gyp ERR! cwd D:\workspace\metronic\ngx-admin\node_modules\node-sass
npm ERR! gyp ERR! node -v v14.17.5
npm ERR! gyp ERR! node-gyp -v v3.8.0
npm ERR! gyp ERR! not ok
npm ERR! Build failed with error code: 1

@FARHANE, I just ran into this error actually. It turns out it wasn't node-gyp itself, but node-sass had an outdated version listed in its dependencies. I manually changed the specified version of node-gyp in the package-lock.json on line 13764 to "node-gyp": "^7.1.0",, after which the npm i command worked just fine!

Hope that helps!

NeonSpork avatar Sep 29 '21 22:09 NeonSpork

same issue with version 16.14

luishdez87 avatar Mar 01 '22 20:03 luishdez87

This worked for me:

Download and install python 2.7 and then

npm config set python C:\Python27\python.exe

Prefix1802 avatar Mar 18 '22 12:03 Prefix1802

same issue with version 16

vaibhavkumar-sf avatar May 16 '22 05:05 vaibhavkumar-sf

Fixed by this solution : https://github.com/akveo/ngx-admin/issues/5893

image

vaibhavkumar-sf avatar May 16 '22 05:05 vaibhavkumar-sf