node-gyp icon indicating copy to clipboard operation
node-gyp copied to clipboard

gyp ERR! configure error

Open MokMec opened this issue 7 years ago • 4 comments

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: [email protected] /Users/m/Projects/ionicV3 └─┬ @angular-devkit/[email protected] └── 18 OPTIONAL DEPENDENCY UNMET [email protected]

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! [email protected] postinstall: node scripts/build.js npm ERR! Exit status 1 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.

Can someone help me?

Thank you

MokMec avatar Jul 08 '19 08:07 MokMec

https://github.com/nodejs/node-gyp/issues?utf8=%E2%9C%93&q=is%3Aissue+EACCES - it's been asked many times before.

bnoordhuis avatar Jul 09 '19 10:07 bnoordhuis

+1

xacaxulu avatar Jan 16 '20 21:01 xacaxulu

+1

wasaisai avatar Oct 10 '20 12:10 wasaisai

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

cclauss avatar Oct 10 '20 18:10 cclauss