【问题标题】:NPM install problem cannot download win32-x64-83_binding.nodeNPM安装问题无法下载win32-x64-83_binding.node
【发布时间】:2021-05-28 16:00:36
【问题描述】:

尝试安装 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

如果我转到链接:https://github.com/sass/node-sass/releases/download/v4.13.1/win32-x64-83_binding.node 我会收到 404 page not found 错误。

有什么问题?

【问题讨论】:

  • 能否提供您正在使用的node、js版本?
  • 节点版本:v14.15.5

标签: node.js sass npm-install


【解决方案1】:

由于版本不兼容,您遇到了问题。

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

您可以查看here

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

【讨论】:

  • 所以,我应该运行什么命令而不是运行npm install node-sass? (注意:我是 node.js/npm 的新手)
  • 试试 npm install node-sass@4.14.1
  • 我在 package.json 中将版本更改为 4.14.1 并运行 npm install node-sass,现在它可以工作了。谢谢!
【解决方案2】:

从 node-modules 中删除 node-sass 文件夹。

运行

npm install node-sass@4.14.1

这将创建所需的 node-sass 二进制文件 win32-x64-83_binding.node,这是编译与 node 版本 14+ 兼容的 sass 文件所必需的。

点击here检查兼容性。

【讨论】:

    猜你喜欢
    • 2021-10-21
    • 2021-09-10
    • 1970-01-01
    • 1970-01-01
    • 2020-04-27
    • 2018-08-27
    • 1970-01-01
    • 2016-03-13
    相关资源
    最近更新 更多