A known:
- using a mac computer
- The node version used is v14.20.0
Question: When installing node-sass 4.12.0, the error is as follows
When you see this bunch of errors, don’t copy and paste them into the browser to search immediately. It feels like headless chickens bumping around. At least take a look at what it means.
It is obvious that there is a document 404 not found, so let's take a look at it in detail
https://github.com/sass/node-sass/releases/download/v4.12.0/darwin-x64-83_binding.node
The darwin-x64-83_binding.node file of version v4.12.0 does not exist. According to the url, we can see that it is in this
https://github.com/sass/node-sass/releases/download/v4.12.0/
Under the address, copy it to the browser to see, oops, it doesn’t exist, but it doesn’t matter, let’s remove the path layer by layer to see what’s going on
Finally, we can find that the path https://github.com/sass/node-sass/releases can be opened.
We found the version 4.12.0 that we reported an error and solved the case. Our node14.20.0 is not compatible with this version of node-sass.
Then we don’t want to change the node version, just change to node-sass, this 4.14.0 is not bad, let’s try it.
sum it up
- Regarding the failure of node-sass installation, the first time I thought of it was the problem of version incompatibility
- Check github's official release document to see if there is a compatibility statement
- After the error is reported, try to read the error message, do not blindly copy and paste to search