Always fails in project YARN and is stuck in Node 16 on Node-sass or GYp
Install –global –production Windows-build-tools install –global –production Windows-build-tools install –global –production Windows-build-tools Dart-sass or some other method would not solve my problem because GYp is dependent on Python. I installed Python too, and it didn’t matter if the version was higher or lower. It was 2.7. Thought that was caused by a system user name is Chinese name (not really), and then began to switch to account Is really annoyed, changed the user name, but in the file name in the system tray will not change, system has confused all get behind Finally only to restore the factory, a good save, it is a pity, he is not clean Thought to restore the factory to pack, Can smoothly benefit, after all, at the beginning of the thought is really my Chinese file path out of the problem, the new computer is English name did not set a Chinese character, but still will report an error, this wrong out of the ordinary, like the same, and where is not the same because he reported garbled code
And then I had someone ask about it maybe because of the version problem,
node
andnode-sass
Version is inconsistent, will kneel, specific can refer to
But there’s no need to use it
nvm
Switch versions, so I just uninstallnode16
With 14
But still no!! He reported the mistakeOk, fine, I’m not angry
At least he gave me an address,Github.com/nodejs/node…Tell me to play VSbuildIn fact, I also played vs before, also installed a lot of not, or failed, but because there is a very important statement I did not type
npm config set msvs_version 2017
This command is very important! Very important!! That command saved my computer, my disappointment with him, and my job
Let’s have fun with our evening purchases