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

gyp ERR! configure error #1814

Closed
MokMec opened this issue Jul 8, 2019 · 4 comments
Closed

gyp ERR! configure error #1814

MokMec opened this issue Jul 8, 2019 · 4 comments
Labels
ERR! node-gyp -v < v10.x.x npm install -g npm Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952

Comments

@MokMec
Copy link

MokMec commented Jul 8, 2019

I just installed nodejs 10.16 and ionic.
When I try to run ionic serve on an empty project I get an error:"[ng] Error: Cannot find module "node-sass'"".

when I do sudo npm ls node-sass I get this:
ionicV3@0.0.1 /Users/m/Projects/ionicV3
└─┬ @angular-devkit/build-angular@0.13.9
└── 18 OPTIONAL DEPENDENCY UNMET node-sass@4.12.0

and when I do a sudo npm install -g node-sass I get the following error:

gyp ERR! configure error
gyp ERR! stack Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/build'
gyp ERR! System Darwin 18.6.0
gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/node-sass/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
gyp ERR! cwd /usr/local/lib/node_modules/node-sass
gyp ERR! node -v v10.16.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok
Build failed with error code: 1
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.9.4 postinstall: node scripts/build.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-sass@4.9.4 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

Can someone help me?

Thank you

@bnoordhuis
Copy link
Member

@xacaxulu
Copy link

+1

1 similar comment
@wasaisai
Copy link

+1

@cclauss cclauss added ERR! node-gyp -v < v10.x.x npm install -g npm Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952 labels Oct 10, 2020
@cclauss
Copy link
Contributor

cclauss commented Oct 10, 2020

sass/node-sass#2952

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ERR! node-gyp -v < v10.x.x npm install -g npm Node Sass --> Dart Sass https://github.com/sass/node-sass/issues/2952
Projects
None yet
Development

No branches or pull requests

5 participants