-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-79_binding.node" #2773
Comments
Please provide the log, there is nothing we can troubleshoot here |
I can't upload the log file, it says, something went really wrong, and we can't process the file. |
@Mustafa-Hayati Try gist.github.com maybe? |
I have the same issue, here is the log file. |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
I installed the new version of node and npm and it is still the same. |
v4.12 was fine. I believe it has to do with v4.13 of node-sass |
I tried v4.12 too, but it didn't work either |
Can you copy (as text) few lines from the console output before the failure? What happens with and after Here is what I just got on a clean node 10 install on Windows Server 2019
|
@Mustafa-Hayati you need to remove ^ in front of the version otherwise it'll keep trying to load 13.. make it like this @saper I created a new project using create-react-app then attempted to add node-sass by npm i -g node-sass here's error, also attached the log file.
|
@FlyRocketDrones This is a problem with your network proxy not allowing connections to Github and Amazon S3. There is nothing we can do here, worst case you can download the file from https://github.com/sass/node-sass/releases/tag/v4.13.0 and set environment variable
|
@Mustafa-Hayati can you paste few lines from npm output just like @FlyRocketDrones did? |
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.0/win32-x64-79_binding.node connect ECONNREFUSED 127.0.0.1:443 Hint: If github.com is not accessible in your location
or configure npm proxy via
Building: C:\Program Files\nodejs\node.exe D:\Practice\webpack\Colt-youtube\my\node_modules\node-gyp\bin\node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library= npm ERR! code ELIFECYCLE npm ERR! A complete log of this run can be found in: |
I don't have access to those two links up above |
Yes, you cannot connect to the proxy on localhost |
@saper makes sense. So for anyone who's having this issue, it is caused by v4.13 hosted at a location that doesn't seem secure to our networks. So unless you find a way to get this version thru proxy, you'll have to stay at v4.12. |
It's the exact same release mechanism as 4.12 (GitHub releases, which is backed by S3) |
npm install for v4.12 works, v4.13 doesn't. if it's azure connection issue, it would happen for v4.12 as well |
I don't know, maybe things for 4.12 got cached; maybe there are rules on the proxy that block any URL with "13", who knows... it's a connectivity issue. @flyrocketdrones what I would do is to sniff the outgoing traffic and check why exactly TLS handshake is failing. Or, if using a proxy, check on the proxy. |
Update to node-sass@4.13 |
@xzyfer It doesn't work not matter what. I updated node and npm and nothing worked. I don't have access to the postinstall links. |
@saper What if I download the whole node-sass zip file from github? will it work? where should i put it? what should I add to package.json? can you help me? |
@Mustafa-Hayati please check #2728 and the README file to determine the right module number for you. Download the file manually and follow the steps I have given in #2773 (comment) to use a downloaded file. |
For those who is having this issue, I think this is a windows issue. I've been having trouble since middle of this year (around August or September 2019 I think) with HTTPS connections in the command line. This has affected NPM installs and other scripts that need to get or call HTTPS connections. I think is actually a windows issue. This is one of reason I HATE using Windows as a development machine. FYI: I don't have a network proxy or any kind of proxy setup in my network or my computers. |
Thanks, this is great. This could be also registry issue... Anything in the npm communities? |
@AcidSlide do you have a possibility to sniff the failing traffic with for example Wireshark and post it somewhere as a binary file? |
@saper I'll try to sniff it, hopefully before switching back to mac.. i'm only using the windows machine until this week By the way, for those having this issue, I have a temporary workaround, to get things working in Windows which is very similar to what @saper mentioned in #2773 (comment) but instead of setting it in PATH, directly download the file into the correct folder for the installation to continue. Although to be honest, saper's method si simplier. |
This started to give an error when I upgraded to Catalina in MAC I solved with: |
For anyone else struggling with this issue I received a similar error message when working on OSX after upgrading my version of npm. Try removing your project's local |
I'm getting this same error in OS x after updating to Catalina....I will leave my solution: npm uninstall node-sass After that everything is up again..... |
For those that are using Windows, first you have to install the last version of phyton and then the "Windows build tools" with the following command (on an an elevated PowerShell or CMD.exe (run as Administrator) npm install --global --production windows-build-tools Then run "npm i" or "npm install node-sass" on your project. This worked for me. |
407 means proxy authentication is failing, add username and password to proxy settings: npm config set proxy "http://'myusername':'mypassword'@myproxy.com:3128/" |
@LucasOta thanks for this #2773 (comment), it did fix the issue I encountered. Ionic@5.4.13 > npm install --global --production windows-build-tools # long process around 3-5 mins
> npm install # there were couple of warnings but I just ignored them
> npm run ionic:serve # script from package.json "ionic:serve": "ionic-app-scripts serve"
> ionic-hello-world@ ionic:serve C:\Users\**\Sites\bitbucket\**-ionic-app
> ionic-app-scripts serve
[16:45:59] ionic-app-scripts 2.0.2
[16:45:59] watch started ...
[16:45:59] build dev started ...
[16:45:59] clean started ...
[16:45:59] clean finished in 7 ms
[16:45:59] copy started ...
[16:45:59] transpile started ...
[16:46:06] transpile finished in 6.72 s
[16:46:06] preprocess started ...
[16:46:06] deeplinks started ...
[16:46:06] deeplinks finished in 291 ms
[16:46:06] preprocess finished in 292 ms
[16:46:06] webpack started ...
[16:46:07] copy finished in 7.38 s
[16:46:14] webpack finished in 7.65 s
[16:46:14] sass started ...
[16:46:18] sass finished in 3.64 s
[16:46:18] postprocess started ...
[16:46:18] postprocess finished in 8 ms
[16:46:18] lint started ...
[16:46:18] build dev finished in 18.72 s
[16:46:18] watch ready in 19.16 s
[16:46:18] dev server running: http://localhost:8100/ |
Hi I'm trying to make the webpack.configure.js file work, and when I want to install sass-loader and node sass (according to the document I have to install both) using the npm install sass-loader node-sass --save-dev , it fails and throws error
node: '12.9.1',
v8: '7.6.303.29-node.15',
uv: '1.31.0',
zlib: '1.2.11',
brotli: '1.0.7',
ares: '1.15.0',
modules: '72',
nghttp2: '1.39.2',
napi: '4',
llhttp: '1.1.4',
http_parser: '2.8.0',
openssl: '1.1.1c',
cldr: '35.1',
icu: '64.2',
tz: '2019a',
unicode: '12.1'
}
The text was updated successfully, but these errors were encountered: