Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x
发布日期:2021-06-29 19:41:19
浏览次数:2
分类:技术文章
本文共 8744 字,大约阅读时间需要 29 分钟。
报错信息:
D:\cas_test2\manager>mvn spring-boot:run
[INFO] Scanning for projects... [INFO] [INFO] -----------------------< com.xadhsd.book:server >----------------------- [INFO] Building server 1.0.0-SNAPSHOT [INFO] --------------------------------[ jar ]--------------------------------- [INFO] [INFO] >>> spring-boot-maven-plugin:1.5.6.RELEASE:run (default-cli) > test-compile @ server >>> [WARNING] The POM for com.xadhsd:dhframe:jar:1.0.0 is missing, no dependency information available [INFO] [INFO] --- frontend-maven-plugin:1.6:install-node-and-npm (install-npm) @ server --- [INFO] Node v8.8.1 is already installed. [INFO] [INFO] --- frontend-maven-plugin:1.6:npm (npm-install) @ server --- [INFO] Running 'npm install' in D:\cas_test2\manager [WARNING] npm WARN ng2-smart-table@1.4.0 requires a peer of ng2-completer@^2.0.8 but none is installed. You must install peer dependencies yourself. [INFO] added 67 packages in 8.401s [WARNING] npm WARN ng2-smart-table@1.4.0 requires a peer of @angular/common@^6.0.1 but none is installed. You must install peer dependencies yourself. [WARNING] npm WARN ng2-smart-table@1.4.0 requires a peer of @angular/core@^6.0.1 but none is installed. You must install peer dependencies yourself. [WARNING] npm WARN ng2-smart-table@1.4.0 requires a peer of @angular/forms@^6.0.1 but none is installed. You must install peer dependencies yourself. [WARNING] npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.7 (node_modules\fsevents): [WARNING] npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.7: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"}) [ERROR] [INFO] [INFO] --- frontend-maven-plugin:1.6:npm (npm-build) @ server --- [INFO] Running 'npm run-script build' in D:\cas_test2\manager [INFO] [INFO] > manager@1.0.0 build D:\cas_test2\manager [INFO] > ng build [INFO] [INFO] Date: 2019-02-25T12:09:31.666Z [ERROR] [INFO] Hash: 8438d455004fff91cc1c [ERROR] ERROR in ./node_modules/raw-loader!./node_modules/postcss-loader/lib??embedded!./node_modules/sass-loader/lib/loader.js??ref--8-3!./src/assets/scss/style.scss [INFO] Time: 16152ms [INFO] chunk {authentication.module} authentication.module.chunk.js, authentication.module.chunk.js.map () 42.4 kB [rendered] [ERROR] Module build failed: Error: Missing binding D:\cas_test2\manager\node_modules\node-sass\vendor\win32-x64-57\binding.node [INFO] chunk {business.module} business.module.chunk.js, business.module.chunk.js.map () 396 kB [rendered][ERROR] Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x [INFO] chunk {common} common.chunk.js, common.chunk.js.map (common) 341 kB [rendered] [ERROR] [ERROR] Found bindings for the following environments: [ERROR] - Windows 64-bit with Node.js 10.x [INFO] chunk {dashboard.module} dashboard.module.chunk.js, dashboard.module.chunk.js.map () 2.05 MB [rendered] [ERROR] [INFO] chunk {inline} inline.bundle.js, inline.bundle.js.map (inline) 5.83 kB [entry] [rendered] [ERROR] This usually happens because your environment has changed since running `npm install`. [INFO] chunk {main} main.bundle.js, main.bundle.js.map (main) 109 kB [initial] [rendered] [ERROR] Run `npm rebuild node-sass` to download the binding for your current environment. [INFO] chunk {polyfills} polyfills.bundle.js, polyfills.bundle.js.map (polyfills) 427 kB [initial] [rendered] [ERROR] at module.exports (D:\cas_test2\manager\node_modules\node-sass\lib\binding.js:15:13) [INFO] chunk {scripts} scripts.bundle.js, scripts.bundle.js.map (scripts) 654 kB [initial] [rendered] [ERROR] at Object.<anonymous> (D:\cas_test2\manager\node_modules\node-sass\lib\index.js:14:35) [INFO] chunk {styles} styles.bundle.js, styles.bundle.js.map (styles) 331 kB [initial] [rendered] [ERROR] at Module._compile (module.js:612:30) [INFO] chunk {system.module} system.module.chunk.js, system.module.chunk.js.map () 483 kB [rendered] [ERROR] at Object.Module._extensions..js (module.js:623:10) [INFO] chunk {vendor} vendor.bundle.js, vendor.bundle.js.map (vendor) 5.68 MB [initial] [rendered] [ERROR] at Module.load (module.js:531:32) [ERROR] at tryModuleLoad (module.js:494:12) [ERROR] at Function.Module._load (module.js:486:3) [ERROR] at Module.require (module.js:556:17) [ERROR] at require (internal/module.js:11:18) [ERROR] at Object.<anonymous> (D:\cas_test2\manager\node_modules\sass-loader\lib\loader.js:3:14) [ERROR] at Module._compile (module.js:612:30) [ERROR] at Object.Module._extensions..js (module.js:623:10) [ERROR] at Module.load (module.js:531:32) [ERROR] at tryModuleLoad (module.js:494:12) [ERROR] at Function.Module._load (module.js:486:3) [ERROR] at Module.require (module.js:556:17) [ERROR] ERROR in ./src/app/layouts/full/full.component.scss [ERROR] Module build failed: Error: Missing binding D:\cas_test2\manager\node_modules\node-sass\vendor\win32-x64-57\binding.node [ERROR] Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 8.x [ERROR] [ERROR] Found bindings for the following environments: [ERROR] - Windows 64-bit with Node.js 10.x [ERROR] [ERROR] This usually happens because your environment has changed since running `npm install`. [ERROR] Run `npm rebuild node-sass` to download the binding for your current environment. [ERROR] at module.exports (D:\cas_test2\manager\node_modules\node-sass\lib\binding.js:15:13) [ERROR] at Object.<anonymous> (D:\cas_test2\manager\node_modules\node-sass\lib\index.js:14:35) [ERROR] at Module._compile (module.js:612:30) [ERROR] at Object.Module._extensions..js (module.js:623:10) [ERROR] at Module.load (module.js:531:32) [ERROR] at tryModuleLoad (module.js:494:12) [ERROR] at Function.Module._load (module.js:486:3) [ERROR] at Module.require (module.js:556:17) [ERROR] at require (internal/module.js:11:18) [ERROR] at Object.<anonymous> (D:\cas_test2\manager\node_modules\sass-loader\lib\loader.js:3:14) [ERROR] at Module._compile (module.js:612:30) [ERROR] at Object.Module._extensions..js (module.js:623:10) [ERROR] at Module.load (module.js:531:32) [ERROR] at tryModuleLoad (module.js:494:12) [ERROR] at Function.Module._load (module.js:486:3) [ERROR] at Module.require (module.js:556:17) [ERROR] ERROR in ./node_modules/ng2-smart-table/components/cell/cell.module.js [ERROR] Module not found: Error: Can't resolve 'ng2-completer' in 'D:\cas_test2\manager\node_modules\ng2-smart-table\components\cell' [ERROR] ERROR in ./node_modules/ng2-smart-table/components/cell/cell-editors/completer-editor.component.js [ERROR] Module not found: Error: Can't resolve 'ng2-completer' in 'D:\cas_test2\manager\node_modules\ng2-smart-table\components\cell\cell-editors' [ERROR] ERROR in ./node_modules/ng2-smart-table/components/filter/filter.module.js [ERROR] Module not found: Error: Can't resolve 'ng2-completer' in 'D:\cas_test2\manager\node_modules\ng2-smart-table\components\filter' [ERROR] ERROR in ./node_modules/ng2-smart-table/components/filter/filter-types/completer-filter.component.js [ERROR] Module not found: Error: Can't resolve 'ng2-completer' in 'D:\cas_test2\manager\node_modules\ng2-smart-table\components\filter\filter-types' [ERROR] npm ERR! code ELIFECYCLE [ERROR] npm ERR! errno 1 [ERROR] npm ERR! manager@1.0.0 build: `ng build` [ERROR] npm ERR! Exit status 1 [ERROR] npm ERR! [ERROR] npm ERR! Failed at the manager@1.0.0 build script. [ERROR] npm ERR! This is probably not a problem with npm. There is likely additional logging output above. [ERROR] [ERROR] npm ERR! A complete log of this run can be found in: [ERROR] npm ERR! C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2019-02-25T12_09_31_906Z-debug.log [INFO] ------------------------------------------------------------------------ [INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 30.963 s [INFO] Finished at: 2019-02-25T20:09:32+08:00 [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:npm (npm-build) on project server: Failed to run task: 'npm run-script build' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1) -> [Help 1] [ERROR] [ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch. [ERROR] Re-run Maven using the -X switch to enable full debug logging. [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException解决办法:
1、删除node_modules
2、npm install -g node-gyp
3、npm install –global –production windows-build-tools
4、cnpm i
5、npm rebuild node-sass
转载地址:https://daqiang.blog.csdn.net/article/details/87924285 如侵犯您的版权,请留言回复原文章的地址,我们会给您删除此文章,给您带来不便请您谅解!
发表评论
最新留言
表示我来过!
[***.240.166.169]2024年04月05日 11时03分23秒
关于作者
喝酒易醉,品茶养心,人生如梦,品茶悟道,何以解忧?唯有杜康!
-- 愿君每日到此一游!
推荐文章
Java集合
2019-04-30
Java List集合
2019-04-30
Java Set集合 HashSet TreeSet
2019-04-30
Java Map集合
2019-04-30
ASCII、ISO-8859-1和GB系列编码
2019-04-30
Unicode及UTF-8、UTF-16、UTF-32
2019-04-30
UCS-2、UCS-4
2019-04-30
Unicode和UCS
2019-04-30
Java如何给ServerSocket绑定指定IP地址
2019-04-30
IPv4地址的分配原理
2019-04-30
IP地址0.0.0.0表示什么
2019-04-30
ps命令和客户端显示结果详细解释
2021-07-03
进程间的通信和管道
2021-07-03
父子进程使用mmap进程间通信
2021-07-03
C++基础知识一
2021-07-03
C++基础知识二
2021-07-03
2021-06-25
2021-07-03
变量和常量的定义
2021-07-03
逻辑运算符的使用方式
2021-07-03
pandas总结
2021-07-03