[英]NPM install problem cannot download win32-x64-83_binding.node
When trying to install npm I get the error that win32-x64-83_binding.node cannot be downloaded:尝试安装 npm 时出现无法下载 win32-x64-83_binding.node 的错误:
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
> fsevents@1.2.13 install C:\Users\***\node_modules\fsevents
> node install.js
Skipping 'fsevents' build as platform win32 is not supported
> node-sass@4.13.1 install C:\Users\***\node_modules\node-sass
> node scripts/install.js
Downloading binary from https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_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 proxy http://example.com:8080
If I go to the link: https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node I get a 404 page not found error.如果我 go 到链接: https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node我得到一个 404 page not found 错误。
What is the problem?问题是什么?
You are facing issue due to the version incompatibility.由于版本不兼容,您面临问题。
The version you are trying to install is 4.13.1 of node-saas, while this version is not supported by Node 14+.您尝试安装的版本是 node-saas 的 4.13.1,而 Node 14+ 不支持此版本。
With Node 14+, you need to install 4.14+ version of node-saas.使用 Node 14+,您需要安装 4.14+ 版本的 node-saas。
Remove node-sass folder from node-modules.从 node-modules 中删除 node-sass 文件夹。
run跑
npm install node-sass@4.14.1
This will create required node-sass binary file win32-x64-83_binding.node which is required to compile sass files which is compatible with node version 14+.这将创建所需的 node-sass 二进制文件win32-x64-83_binding.node ,这是编译与节点版本 14+ 兼容的 sass 文件所必需的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.