I'm using Node v16.14.0
and cannot install Sass. Here is the error I'm getting:
Asked
Active
Viewed 466 times
1

Youssouf Oumar
- 29,373
- 11
- 46
- 65

Haseeb Ahmad
- 19
- 3
-
1How are you using NPM 3 with Node 16? – jonrsharpe Jun 13 '22 at 20:28
-
When I switched to node version 14.18.3, I was able to install sass – Haseeb Ahmad Jun 13 '22 at 20:33
-
Using nvm when I switch to v16.14.0, the npm version also changes to 3. @jonrsharpe – Haseeb Ahmad Jun 13 '22 at 20:38
-
1Welcome to Stack Overflow! I would strongly recommend upgrading npm to the latest version. This isn't a node issue. – disinfor Jun 13 '22 at 20:55
-
Does this answer your question? [How can I change the version of npm using nvm?](https://stackoverflow.com/questions/9755841/how-can-i-change-the-version-of-npm-using-nvm) – disinfor Jun 13 '22 at 20:58
1 Answers
4
You have NPM v3.10.10
with Node v16.14.0
, where the default NPM is v8.3.1
for that Node version. It's not about Sass, I would suggest you to upgrade your NPM version:
npm i -g npm

Youssouf Oumar
- 29,373
- 11
- 46
- 65