NPM安装问题无法下载win32-x64-83_binding.node

The*_*ixy 2 sass node.js npm-install

尝试安装 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
Run Code Online (Sandbox Code Playgroud)

如果我转到链接: https: //github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node我收到 404 页面未找到错误。

问题是什么?

小智 5

由于版本不兼容,您面临问题。

您尝试安装的版本是node-saas 4.13.1,而Node 14+不支持该版本。

你可以在这里查看

对于 Node 14+,您需要安装 4.14+ 版本的 node-saas。