node.js - Node Sass missing binding for multiple node versions -


i using nvm switch between node versions.

my package.json:

"scripts": { "dev": "rm -rf public/assets/*.hot-update.js && node_env=development webpack --env=dev --progress --profile --colors", "prod": "node_env=production webpack --env=prod --progress --profile --colors" }, "author": "", "license": "isc", "devdependencies": { "babel-core": "^6.18.2", "babel-loader": "^6.2.10", "babel-preset-es2015": "^6.18.0", "babel-preset-stage-0": "^6.16.0", "babel-preset-stage-2": "^6.18.0", "compression-webpack-plugin": "^0.3.2", "css-loader": "^0.26.2", "extract-text-webpack-plugin": "^2.0.0", "file-loader": "v0.10.0", "imports-loader": "^0.7.0", "node-sass": "^4.1.1", "postcss-cssnext": "^2.9.0", "sass-loader": "^4.1.1", "script-loader": "^0.7.0", "style-loader": "^0.13.1", "uglifyjs-webpack-plugin": "^0.1.2", "vue": "^2.0.3", "vue-lazyload": "0.7.5", "vue-loader": "^10.2.1", "vue-resource": "^1.2.0", "vue-style-loader": "^1.0.0", "vue-template-compiler": "^2.1.8", "vuex": "^2.0.0", "webpack": "2.2.0", "webpack-manifest-plugin": "^1.1.0", "webpack-md5-hash": "^0.0.5", "webpack-merge": "^2.6.1", "whatwg-fetch": "^2.0.2" }

when using node v6.2.0, , run npm run dev, following error:

error in ./~/css-loader?{"minimize":true}!./~/vue-loader/lib/style-rewriter.js?id=data-v-be2abeee!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./~/@zoomcarindia/web-zap-revenue-calculator/src/components/graph/graph.vue     module build failed: error: missing binding /users/nihar/documents/zoomcar/web/node_modules/node-sass/vendor/darwin-x64-48/binding.node     node sass not find binding current environment: os x 64-bit node.js 6.x  found bindings following environments:   - os x 64-bit node.js 7.x 

and when use node v7.8.0, following error:

error in ./checklist/~/css-loader?{"minimize":true}!./~/vue-loader/lib/style-rewriter.js?id=data-v-a5234466!./checklist/~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./checklist/src/components/upload.vue     module build failed: error: missing binding /users/nihar/documents/zoomcar/web/checklist/node_modules/node-sass/vendor/darwin-x64-51/binding.node     node sass not find binding current environment: os x 64-bit node.js 7.x      found bindings following environments:       - unknown environment (.ds_store)       - os x 64-bit node.js 6.x 

whichever node version use, says corresponding binding missing.

i have tried npm rebuild node-sass , rm -rf node_modules multiple times.

even tried npm install --save-dev gulp-sass@2 suggested here.

initially had installed node using brew. v6.2.0. removed system node suggested here, , installed same using nvm.

but issue still persists. please let me know missing here.

so had similar issue node-sass , ended grabbing binaries needed github here.

for me needed win32-ia32-48 , created folder , copied in binding.node file link above (after renaming remove win32-ia32-48 prefix).


Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -