Closed huijing closed 3 years ago
The 4.14.1 dependency of gulp-sass isn't supported on Node 15. Your outside dependency of node-sass v5 is, but because of the internal dependency it's falling back to a native build on an unsupported combo
getting this aswell:
npm: 6.14.8 node: v14.15.1 node process:
{ node: '14.15.1', v8: '8.4.371.19-node.17', uv: '1.40.0', zlib: '1.2.11', brotli: '1.0.9', ares: '1.16.1', modules: '83', nghttp2: '1.41.0', napi: '7', llhttp: '2.1.3', openssl: '1.1.1g', cldr: '37.0', icu: '67.1', tz: '2020a', unicode: '13.0' }
Node Platform (node -p process.platform): darwin Node architecture (node -p process.arch): x64 node-sass version (node -p "require('node-sass').info"):
node-sass 4.13.1 (Wrapper) [JavaScript] libsass 3.5.4 (Sass Compiler) [C/C++]
npm node-sass versions (npm ls node-sass):
├── node-sass@4.13.1 └─┬ nuxt-scss-to-js@1.0.4 └─┬ scss-to-json@2.0.0 └── node-sass@4.13.1
Just in case anyone is having this issue with Ionic, the solutions that worked for me was upgrading the "@ionic/app-scripts": "3.2.4", to version 3.2.4 (latest)
You must update that version manually in your package.json, remove node_modules and package-lock.json before installing everything again.
Hope it helps.
npm update solved this for me
Just delete node_modules, package-lock.json, nodejs, and reinstall the latest nodejs. Then try npm install again.
Delete node_modules, package-lock.json and run npm install
I had this issue, downgraded node --version: v16 to v14 and the problem went away.
Downgrading to node14 worked, following these instructions
@nschonni Hi I have a similar issue.
Those are my npm node-sass versions: └─┬ gulp-sass@2.3.2 └── node-sass@3.13.1
And Im using node v10.16.1.
Do you know how can I upgrade this node-sass version to 5?
I already try to do this command $ npm install node-sass@5 but it just add a outside dependency of node-sas -
├─┬ gulp-sass@2.3.2 │ └── node-sass@3.13.1 └── node-sass@5.0.0
Please, I really appreciate your help. I'm trying to figure out this issue for more then a week, and maybe changing this node-sass dependency will finally help
Downgrading to node14 worked, following these instructions
thanks, it's work for me
I use nvm to swich my dev env to node14
npm -v
): 6.14.8node -v
): v15.2.0node -p process.versions
):node -p process.platform
): darwinnode -p process.arch
): x64node -p "require('node-sass').info"
):npm ls node-sass
):node-gyp version: v7.1.2
When I run
npm install
, the process never completes and keeps repeating with this log message:Is this an issue with libsass?