npm出错误node-sassvendorwin32-x64-83inding.node

Posted JackieDYH

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了npm出错误node-sassvendorwin32-x64-83inding.node相关的知识,希望对你有一定的参考价值。

错误

Missing binding node_modules\\node-sass\\vendor\\win32-x64-83\\binding.node
  Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 14.x
  Found bindings for the following environments:
    - Windows 64-bit with Node.js 14.x
  This usually happens because your environment has changed since running `npm install`.
  Run `npm rebuild node-sass` to download the binding for your current environment.

项目目录发现node_modules\\node-sass\\vendor\\win32-x64-83目录下为空

解决

去github下载所需文件放到目录里Release v4.14.0 · sass/node-sass (github.com)|sass/node-sass: Node.js bindings to libsass (github.com)

npm rebuild node-sass

以上是关于npm出错误node-sassvendorwin32-x64-83inding.node的主要内容,如果未能解决你的问题,请参考以下文章

Laravel 项目中的“npm run hot”抛出无效配置错误

如何在没有 sudo 的情况下修复 npm 抛出错误

无法将离子与电容器集成,npm 抛出错误

Npm test 抛出错误,但应用程序运行时没有错误

我想使用 npm 安装 sass,但它会抛出错误:找不到模块“semver”

npm install 在 node-sass 中抛出错误