node-sass command failed- MAC OS - npm

i'm having issue running ( npm install )
where my
node version is : v16.18.0 nvm version : 0.39.1 npm version : 8.19.2 node-sass : 6.0.1 node-gyp -v v7.1.2
I'LL ATTACH PICTURE OF NPM LOG.
tried to remove out node modules and pkg lock
also. tried to install it globally and run npm i again .
i unfortunately can't upgrade the pkg version so i need to keep the node-sass 6.0.1

Related

Installing Hyperledger composer npm dependencies on mac m1

I am installing Hyperldeger fabric dependencies on mac m1.
I am using nvm for node version management.
npm -version : 8.11.0
node --version : v17.9.1
uname -a : Darwin adla-dmarathe-2 21.6.0 Darwin Kernel Version 21.6.0: Wed Aug 10 14:28:23 PDT 2022; root:xnu-8020.141.5~2/RELEASE_ARM64_T6000 x86_64
Here is the error thrown :
npm ERR! code Z_DATA_ERROR
npm ERR! errno -3
npm ERR! zlib: incorrect data check
I tried to reinstall node, npm.
cleaned up cache.
installed nvm.
I tried installing the composer-cli using the command npm install -g composer-cli on various versions of node ; 14, 16, 17 and lts without much luck. The command fails with the following error.

node-sass compatibilite problemes to compile

I tried to install node-sass but nothing work
node-sass#4.14.1 not be installed and I install the node-sass#6
my node version is : v16.17.1
my npm version is : 8.19.2
./src/Components/Categories/categories.scss (./node_modules/css-loader??ref--6-oneOf-5-1!./node_modules/postcss-loader/src??postcss!./node_modules/sass-loader/lib/loader.js??ref--6-oneOf-5-3!./src/Components/Categories/categories.scss)
Error: Node Sass version 7.0.3 is incompatible with ^4.0.0.

npm rebuild node-sass hang

Node version : 8.16.
npm: 6.4.1
yarn: 1.17.3
postinstall: npm rebuild node-sass hangs
Tried with multiple solutions,but not works
Yarn add -D node-sass
adding node-sass as dependency package fixed the issue.

how to install node 4.4.7 and npm 3.8.9?

By default node 4.4.7 comes with npm 2.15.8 version.
How can I modify npm version to 3.8.9 with same node version?
npm update #npm3.8.9 or upgrade didn't do.
Try like this
npm install npm#3.8.9
If you want to install latest version of npm
npm install npm#latest
here latest is the keyword
We can also upgrade node via npm
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
The n package represents a Node helper, and running the last command upgrades node to the latest stable version. Instead of using "stable", you could specify a desired version:
To upgrade, run: [sudo] npm install npm#latest -g if you don't want the latest provide the version number there

How to install npm 3 beta on Windows?

I've tried running npm install npm#3 -g but my npm is still at 2.x:
How to install the latest beta?
It was a PATH issue - c:\Program Files\nodejs had higher priority than %APPDATA%\npm which was causing npm to be stuck at the older version.