Node-sass does not work. I see a message that node-sass is deprecated and will be removed in a future major version. I already uninstalled many times with no effect. I could still uninstall again. How could I solve?
Asked
Active
Viewed 1,722 times
1 Answers
0
Aside from the obvious "if this isn't your own code, but some framework's start project: use their latest version", if that is not the case you can use the npm-ls command to generate the full dependency tree for your project.
- Use
npm ls --all > dependencylist.txt
to write that tree to a text file you can just open in your editor, then - find any mention of node-sass in
dependencylist.txt
, and - look up in the tree to find out which of your direct dependencies has a deeply nested indirect dependency on node-sass. Then
- update those dependencies to their latest versions,
- delete your
node_modules
dir, and finally - rerun
npm install
.
And of course, remember to never install anything globally, so if you made the mistake of installing node-sass
using the -g
flag, you'll have to also remember to uninstall it globally with that same -g
flag.

Mike 'Pomax' Kamermans
- 49,297
- 16
- 112
- 153