安装node-sass时报python2_node-sass 安装失败的各种坑

开始的时候引入别人的一个项目

npm install

npm run dev 启动项目

报错

> node build/dev-server.js

Listening at http://localhost:8888

webpack: wait until bundle finished: /index.html

webpack built 5301489d16ee90d86896 in 3165ms

Hash: 5301489d16ee90d86896

Version: webpack 1.15.0

Time: 3165ms

Asset Size Chunks Chunk Names

app.js 1.96 MB 0 app

ERROR in Cannot find module 'node-sass'

@ ./src/common/scss/index.scss 4:14-124 13:2-17:4 14:20-130

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-e0c3a2e6!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/App.vue 4:14-240 13:2-17:4 14:20-246

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-690f3aee&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ratings/ratings.vue 4:14-280 13:2-17:4 14:20-286

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-2ac60e2e&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/goods/goods.vue 4:14-278 13:2-17:4 14:20-284

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-17cac44c&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/seller/seller.vue 4:14-279 13:2-17:4 14:20-285

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-108aa294&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/split/split.vue 4:14-278 13:2-17:4 14:20-284

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-13f047fa&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/star/star.vue 4:14-277 13:2-17:4 14:20-283

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-bbdb154c&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/ratingselect/ratingselect.vue 4:14-285 13:2-17:4 14:20-291

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-652a5408&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/cartcontrol/cartcontrol.vue 4:14-284 13:2-17:4 14:20-290

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-1728dbcc&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/header/header.vue 4:14-279 13:2-17:4 14:20-285

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-40efc97a&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/shopcart/shopcart.vue 4:14-281 13:2-17:4 14:20-287

ERROR in Cannot find module 'node-sass'

@ ./~/vue-style-loader!./~/css-loader!./~/vue-loader/lib/style-rewriter.js?id=data-v-617e6f7a&scoped=true!./~/sass-loader!./~/vue-loader/lib/selector.js?type=styles&index=0!./src/components/food/food.vue 4:14-277 13:2-17:4 14:20-283

Child html-webpack-plugin for "index.html":

Asset Size Chunks Chunk Names

index.html 1.47 MB 0

webpack: Failed to compile.

npm i node-sass -s安装

报错

E:\kibana>npm install node-sass

> node-sass@3.8.0 install E:\kibana\node_modules\node-sass

> node scripts/install.js

Cannot download "https://github.com/sass/node-sass/releases/download/v3.8.0/win3

2-x64-48_binding.node":

tunneling socket could not be established, cause=socket hang up

Hint: If github.com is not accessible in your location

try setting a proxy via HTTP_PROXY, e.g.

export HTTP_PROXY=http://example.com:1234

or configure npm proxy via

npm config set proxy http://example.com:8080

> node-sass@3.8.0 postinstall E:\kibana\node_modules\node-sass

> node scripts/build.js

Building: D:\Program Files\nodejs\node.exe E:\kibana\node_modules\node-gyp\bin\n

ode-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags=

--libsass_library=

gyp info it worked if it ends with ok

gyp verb cli [ 'D:\\Program Files\\nodejs\\node.exe',

gyp verb cli 'E:\\kibana\\node_mo

  • 0
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值