Solution to error reporting in node-sass installation in npm

      I changed to a new computer two days ago, then configured the development environment, and pulled the code. As a result, when npm install installed the package, I reported an error that node-sass could not be installed, and reminded that python2 was not installed... a bit speechless.

      Then I checked for a long time and found that the node16 version caused the problem. Later, I uninstalled the current version and installed the 14 version. The problem was solved. Of course, I also installed python2.7, but it didn’t work. Version solved!

      Summary of experience, it is best not to use the latest version of development tools, there are basically pitfalls, and they are all looking for mice to solve the pitfalls! !

Guess you like

Origin blog.csdn.net/playboyanta123/article/details/122174678