This article is a mirror article of machine translation, please click here to jump to the original article.

View: 8569|Reply: 1

node-sass error workaround

[Copy link]
Posted on 5/5/2020 1:28:21 PM | | | |
When using the npm restore package, the error is as follows:

>node-sass@4.12.0install C:\itsvse\node_modules\node-sass
> node scripts/install.js

Downloading binary fromhttps://github.com/sass/node-sas ... x64-79_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.12.0/win32-x64-79_binding.node":

HTTP error 404 Not Found

Hint: If github.com is not accessible in your location
      try setting a proxy via HTTP_PROXY, e.g.

      export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

      npm config set proxyhttp://example.com:8080
Solution 1

Download:The hyperlink login is visible.

Extract it to the project's node_modules folder.

Solution 2

Run the following command:



After entering this command, a system version will pop up, for example, I have win32-x64-79 popping up, then I need to go to any of the following two addresses to download the win32-x64-79_binding.node file (file with the suffix node) to the local area
execute

Command as follows:








Previous:npm method of setting up and canceling proxies
Next:A complete list of commonly used regular expressions
Posted on 5/5/2020 9:19:43 PM |
The node-sass problem is really endless. Today there is another problem with the installation as follows
Module build failed: Error: ENOENT: no such file or directory, scandir 'C:\Users\zzc\Desktop\suxie\ppg_wx\node_modules\node-sass\vendor'
The gist is that I didn't find the vendor under node-sass, and when I looked at it, it was indeed not
You can type the command npm rebuild node-sass --save-dev
You will find more vendors in node-modules/nodess

Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com