zoukankan      html  css  js  c++  java
  • Error: Node Sass does not yet support your current environment: Windows 64-bit

    错误日志:

    throw new Error(errors.unsupportedEnvironment())
    C:Users72074530Desktop
    unhealth
    ode_modules
    ode-sasslibinding.js:13
          throw new Error(errors.unsupportedEnvironment());
          ^
    
    Error: Node Sass does not yet support your current environment: Windows 64-bit with Unsupported runtime (83)
    For more information on which environments are supported please see:
    https://github.com/sass/node-sass/releases/tag/v4.13.0
        at module.exports (C:Users72074530Desktop
    unhealth
    ode_modules
    ode-sasslibinding.js:13:13)
        at Object.<anonymous> (C:Users72074530Desktop
    unhealth
    ode_modules
    ode-sasslibindex.js:14:35)
        at Module._compile (internal/modules/cjs/loader.js:1200:30)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:1220:10)
        at Module.load (internal/modules/cjs/loader.js:1049:32)
        at Function.Module._load (internal/modules/cjs/loader.js:937:14)
        at Module.require (internal/modules/cjs/loader.js:1089:19)
        at require (internal/modules/cjs/helpers.js:73:18)
        at Object.<anonymous> (C:Users72074530Desktop
    unhealth
    ode_modulesgulp-sassindex.js:162:21)
        at Module._compile (internal/modules/cjs/loader.js:1200:30)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! runshare@0.1.0 public: `gulp && rm -rf ./public/rev`
    npm ERR! Exit status 1
    npm ERR!
    npm ERR! Failed at the runshare@0.1.0 public script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     C:Users72074530AppDataRoaming
    pm-cache\_logs2020-06-23T08_51_01_590Z-debug.log

    解决办法:

    1. 删除老的node_modules;
    2. set SASS_BINARY_PATH=D:win32-x64-64_binding.node
    3. cnpm install

    原理可以查看这篇文章:https://blog.csdn.net/qwe1314225/article/details/104749866/

  • 相关阅读:
    函数
    registry搭建及镜像管理-harbor
    用户输入和while 循环
    dockerfile
    字典,set
    if 语句
    alpine操作
    循环:列表,元组
    列表
    docker跨主机通信-overlay
  • 原文地址:https://www.cnblogs.com/DZzzz/p/13183494.html
Copyright © 2011-2022 走看看