Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NodeJS Version #5879

Open
1 of 3 tasks
borodatych opened this issue Aug 9, 2021 · 6 comments
Open
1 of 3 tasks

NodeJS Version #5879

borodatych opened this issue Aug 9, 2021 · 6 comments

Comments

@borodatych
Copy link

borodatych commented Aug 9, 2021

Issue type

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

  • bug report
  • 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
@FARHANE
Copy link

FARHANE commented Sep 7, 2021

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

@NeonSpork
Copy link

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!

@luishdez87
Copy link

same issue with version 16.14

@Prefix1802
Copy link

This worked for me:

Download and install python 2.7 and then

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

@vaibhavkumar-sf
Copy link

same issue with version 16

@vaibhavkumar-sf
Copy link

Fixed by this solution : #5893

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants