1

I have ran the command npm install node-sass,and get a mistake as follow:

npm ERR! code 1
npm ERR! path D:\votingComputePlantformFrontEndWeb\node_modules\node-sass
npm ERR! command failed
npm ERR! command C:\Windows\system32\cmd.exe /d /s /c node-gyp rebuild
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using [email protected]
npm ERR! gyp info using [email protected] | win32 | x64

I have tried npm install [email protected], then I get

npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. Please upgrade asap.

James Z
  • 12,209
  • 10
  • 24
  • 44

2 Answers2

0

This is not an error. Your tar is outdated. To fix this issue run this command :-

npm i tar -g 

and enter ok. Now your problem of npm WARN deprecated [email protected]: This version of tar is no longer supported, and will not receive security updates. will be fixed.

Shabari nath k
  • 920
  • 1
  • 10
  • 23
Codexs
  • 19
  • 4
0

https://sass-lang.com/blog/libsass-is-deprecated

According to sass blog, node sass has been deprecated, and you should use dart sass. Personally, I installed 'sass' instead of 'node-sass', and it worked regardless of Python.

npm install sass