Reputation: 193
I have a service that I wrote in Node.js v8.0 And I'm trying to install it on Node.js v18.7.0,
When I try to 'npm install' I get an obscure error.
I tried installing python and setting it in environment variables and it doesn't help..
Does anyone have a solution to this problem?
Upvotes: 5
Views: 14005
Reputation: 347
I got the same error. Tried all suggested answers between this page & this link.
I deleted node_modules & package-lock.json, then entered these commands which got things going, for whatever reason:
npm i -g sass
npm rebuild node-sass
Upvotes: 2
Reputation: 193
Thank you Mr. R. I concentrate here the order of operations in an orderly manner, for the benefit of all:
Reload the project from git and delete package-lock.json file(or remove node_module and delete package-lock.json file , and clear caches)
Run remove Node.js from your computer .
Restart your computer( maybe you don't have to, but that's what I did :( )
Reinstall Node.js.
Run in terminal:
npm uninstall node-sass
npm WARN using --force
npm i node-sass
npm rebuild node-sass --force
Run: 'npm i'
Successfully
Upvotes: 2