The cause of
On a nice afternoon, I typed quasar create Tangerine_Reception
and I was proud to use YARN asa package manager, thinking I’d be free to worry about NPM’s quirks…
But Murphy’s Law always works: Yarn error An unexpected error occurred:****ETIMEDOUT (****)
why
After a search, we found that this was caused by the resource address request timeout. We need to change the source in China.
The solution
yarn config set registry https://registry.npm.taobao.org -g
Because the mirror image of taobao ten minutes synchronization, domestic speed is fast, so it was used
Proxies have been used
And then for a while there is a problem, check, found that I used to use the agent, now no, you can delete the agent.
yarn config delete proxy
yarn config delete https-proxy
Error installing node-sass
Then I use the yarn installation node – sass, then you can think of, to perform for a long time, finally told me: “oh, you can’t,” the problem with this address
“, of course not, but the solution is simple:
yarn config set sass_binary_site http://cdn.npm.taobao.org/dist/node-sass -g
Taobao mirror source Dafa good
This will enable you to install Node-sass using NPM and download it from your Taobao source.
Read More:
- Solution to the problem of selecting node sass when creating vue-cli3
- yarn install gyp verb `which` failed python2 Error: not found: python2
- Module not found: Error: Can’t resolve ‘sass-loader’ in ‘F:\H5\project-h5’
- npm install Error:gyp verb `which` failed Error: not found: python
- Command failed: NPM install — loglevel error — registry= https://registry.npm.taobao.org
- The Vue project does not install node sass and an error is reported
- NPM err! Code enotfound (2020-07-03)
- Module build failed: Error: ENOENT: no such file or directory, scandir,‘node_modules\node-sass\vend’
- Error creating project by Vue yorkie: command failed
- Module build failed: error: cannot find module ‘node sass’ error
- Simple solution for node sass installation failure
- How to Fix Module build failed: Error: ENOENT: no such file or directory, scandir xxxxxx\node_…
- webstorm npm install –save –save-exact –loglevel error react react-dom react-scripts has failed.
- Failed to build gem native extension encountered while installing sass
- Error: Module did not self-register
- Error: ENOENT: no such file or directory, mkdir E:\
- Error gyp verb ‘which’ failed error: not found: python2 using Vue admin template master
- Does Vue project already have sass loader dependency or report an error using lang = “SCSS”
- Unloading and installation of node and NPM of Vue Foundation
- npm ERR! Error: CERT_ Untrusted problem solving