VUE开发日志---------Node Sass does not yet support your current environment

 VUE开发日志
Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)

问题

Module build failed: Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (64)
For more information on which environments are supported please see:
https://github.com/sass/node-sass/releases/tag/v4.7.2
    at module.exports (..\node_modules\node-sass\lib\binding.js:13:13)
    at Object.<anonymous> (..\admin_master\node_modules\node-sass\lib\index.js:14:35)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)
    at require (internal/modules/cjs/helpers.js:22:18)
    at Object.<anonymous> (..\admin_master\node_modules\sass-loader\lib\loader.js:3:14)
    at Module._compile (internal/modules/cjs/loader.js:689:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:700:10)
    at Module.load (internal/modules/cjs/loader.js:599:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:538:12)
    at Function.Module._load (internal/modules/cjs/loader.js:530:3)
    at Module.require (internal/modules/cjs/loader.js:637:17)

解决方法尝试一 ---- 失败:

npm i node-sass -D

报错

解决方法尝试二 ---- 失败:

先卸载

npm uninstall --save node-sass

报错

Downloading binary from https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node
Cannot download "https://github.com/sass/node-sass/releases/download/v3.13.1/win32-x64-57_binding.node":

HTTP error 404 Not Found

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

解决方法尝试三 ---- 成功:

使用淘宝镜像安装

cnpm install node-sass

成功界面如下

admin_master>cnpm install node-sass
√ Installed 1 packages
√ Linked 171 latest versions
Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v4.11.0/win32-x64-64_binding.node
Download complete
Binary saved to ..\admin_master\node_modules\[email protected]@node-sass\vendor\win32-x64-64\binding.node
Caching binary to C:\Users\xix\.npminstall_tarball\node-sass\4.11.0\win32-x64-64_binding.node
Binary found at ..\admin_master\node_modules\[email protected]@node-sass\vendor\win32-x64-64\binding.node
Testing binary
Binary is fine
√ Run 1 scripts
Recently updated (since 2019-01-20): 2 packages (detail see file ..\admin_master\node_modules\.recently_updates.txt)
√ All packages installed (181 packages installed from npm registry, used 10s, speed 136.88kB/s, json 172(287.86kB), tarball 1.1MB)

猜你喜欢

转载自blog.csdn.net/qq_17237735/article/details/86666580