Tried different solutions, but there is this issue during npm install. I've deleted the package-lock file and tried. The --force or --legacy-peer-deps option didn't help either.
npm WARN deprecated [email protected]: core-js@<3.4 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path C:\Users\HillsonGhimire\Desktop\RC\F\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node scripts/build.js
npm ERR! Building: C:\Program Files\nodejs\node.exe C:\Users\HillsonGhimire\Desktop\RC\F\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp verb cli
npm version: 8.3.1
node version: 16.14.0
CodePudding user response:
Try clearing the cache
using below code:
npm clean-install
It should work.
CodePudding user response:
You can try these steps by installing node-sass based on your node version
rm -rf node_modules package-lock.json
npm install --saveDev [email protected]
npm install