【问题标题】:I get this error while compiling the code, I have copied the code from another system. How can I solve this error?编译代码时出现此错误,我已从另一个系统复制代码。我该如何解决这个错误?
【发布时间】:2020-02-19 08:04:05
【问题描述】:

./src/styles.scss 中的错误 (./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref --15-3!./src/styles.scss) 模块构建失败(来自 ./node_modules/sass-loader/lib/loader.js): 错误:缺少绑定 E:\Angular App\Client\node_modules\node-sass\vendor\win32-x64-64\binding.node Node Sass 找不到当前环境的绑定:Windows 64-bit with Node.js 10.x

找到以下环境的绑定: - 带有 Node.js 8.x 的 Windows 64 位

这通常是因为您的环境在运行npm install 后发生了变化。 运行npm rebuild node-sass 下载当前环境的绑定。 在 module.exports (E:\Angular App\Client\node_modules\node-sass\lib\binding.js:15:13) 在对象。 (E:\Angular App\Client\node_modules\node-sass\lib\index.js:14:35) 在 Module._compile (internal/modules/cjs/loader.js:778:30) 在 Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10) 在 Module.load (internal/modules/cjs/loader.js:653:32) 在 tryModuleLoad (internal/modules/cjs/loader.js:593:12) 在 Function.Module._load (internal/modules/cjs/loader.js:585:3) 在 Module.require (internal/modules/cjs/loader.js:692:17) 在需要(内部/模块/cjs/helpers.js:25:18) 在 Object.sassLoader (E:\Angular App\Client\node_modules\sass-loader\lib\loader.js:46:72) ./src/app/core/preloader/preloader.scss 中的错误(./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js ??ref--15-3!./src/app/core/preloader/preloader.scss) 模块构建失败(来自 ./node_modules/sass-loader/lib/loader.js): 错误:缺少绑定 E:\Angular App\Client\node_modules\node-sass\vendor\win32-x64-64\binding.node Node Sass 找不到当前环境的绑定:Windows 64-bit with Node.js 10.x

【问题讨论】:

标签: node.js angular sass


【解决方案1】:

你的错误字面意思是:

Run npm rebuild node-sass

【讨论】:

    猜你喜欢
    • 2019-12-01
    • 1970-01-01
    • 2013-10-09
    • 1970-01-01
    • 2020-12-03
    • 2021-07-28
    • 2017-07-25
    • 2019-10-05
    • 2011-09-04
    相关资源
    最近更新 更多