프로젝트를 빌드하는 중에 다음 오류가 발생합니다. 사실 "오류/Missing binding /myproject/node_modules/node-sass/vendor/linux-x64-57/binding.node"라고 표시되어 있지만 "Missing binding/myproject/node_modules/node-sass/vendor/linux-x64-48 /binding.node ". 나는 왜 "linux-x64-48"을 언급하지 않는지 모르겠다.webpack 빌드 중에 /myproject/node_modules/node-sass/vendor/linux-x64-57/binding.node 바인딩이 누락되었습니다.
오류 란 Run npm rebuild node-sass --force
이라고 말하면서 행운을 보였습니다. 이 문제를 해결할 수 있도록 도와주세요.
노드 버전 : v8.9.1
NPM : 5.5.1
참고 : 난 전체 node_modules을 제거하여 시도하고을 (npm install
)를 다시 설치. 하지만 여전히 같은 오류가 발생합니다.
ERROR in ./node_modules/css-loader!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6ef6ca5e","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/components/UserProfile.vue
Module build failed: Error: Missing binding /myproject/node_modules/node-sass/vendor/linux-x64-57/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x
Found bindings for the following environments:
- Linux 64-bit with Node.js 6.x
This usually happens because your environment has changed since running `npm install`.
Run `npm rebuild node-sass --force` to build the binding for your current environment.
at module.exports (/myproject/node_modules/node-sass/lib/binding.js:15:13)
at Object.<anonymous> (/myproject/node_modules/node-sass/lib/index.js:14:35)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/myproject/node_modules/sass-loader/lib/loader.js:3:14)
at Module._compile (module.js:635:30)
at Object.Module._extensions..js (module.js:646:10)
at Module.load (module.js:554:32)
at tryModuleLoad (module.js:497:12)
at Function.Module._load (module.js:489:3)
at Module.require (module.js:579:17)
@ ./node_modules/vue-style-loader!./node_modules/css-loader!./node_modules/vue-loader/lib/style-compiler?{"vue":true,"id":"data-v-6ef6ca5e","scoped":true,"hasInlineConfig":false}!./node_modules/sass-loader/lib/loader.js!./node_modules/vue-loader/lib/selector.js?type=styles&index=0&bustCache!./src/components/MyProfile.vue 4:14-346 13:3-17:5 14:22-354
@ ./src/components/UserProfile.vue
@ ./src/router.js
@ ./src/main.js
@ multi ./build/dev-client ./src/main.js
ERROR in ./node_modules/css-loader!./node_modules/sass-loader/lib/loader.js!./src/assets/scss/main.scss
Module build failed: Error: Missing binding /myproject/node_modules/node-sass/vendor/linux-x64-57/binding.node
Node Sass could not find a binding for your current environment: Linux 64-bit with Node.js 8.x
Found bindings for the following environments:
- Linux 64-bit with Node.js 6.x