cnpm 将 node-sass 也镜像了

来源:互联网 发布:核盾网络验证使用方法 编辑:程序博客网 时间:2024/06/07 12:21

使用了 node-sass 的同学有福了,cnpm 将 node-sass 的二进制文件也从 github 镜像到 taobao npm 了。https://github.com/cnpm/cnpm/pull/76

这样大家就能通过 cnpm install node-sass 快速地安装了。

cnpm i node-sass 从原来的需要 build,到现在 20s 就安装完了。

before:

time tnpm i node-sass --no-cache\> spawn-sync@1.0.14 postinstall /private/tmp/node_modules/node-sass/node_modules/cross-spawn/node_modules/spawn-sync> node postinstall|> node-sass@3.4.1 install /private/tmp/node_modules/node-sass> node scripts/install.jsCannot download "https://github.com/sass/node-sass/releases/download/v3.4.1/darwin-x64-46_binding.node": read ECONNRESETHint: If github.com is not accessible in your location      try setting a proxy via HTTP_PROXY, e.g.       export HTTP_PROXY=http://example.com:1234or configure npm proxy via      npm config set proxy http://example.com:8080> node-sass@3.4.1 postinstall /private/tmp/node_modules/node-sass> node scripts/build.js

after:

[tnpm] Finish 22s json/tgz: 0/173, size/speed 2.35MB/479.6kB/s, total/keepalive/queue: 173/0/0real0m22.982suser0m12.398ssys0m2.641s
原创粉丝点击