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/

  • 相关阅读:
    爬虫——Selenium与PhantomJS
    爬虫——多线程糗事百科案例
    爬虫——json模块与jsonpath模块
    爬虫——使用BeautifulSoup4的爬虫
    爬虫——BeautifulSoup4解析器
    爬虫——爬取百度贴吧每个帖子里面的图片
    爬虫——爬虫中使用正则表达式
    爬虫——正则表达式re模块
    爬虫——requests模块
    爬虫——Handler处理器 和 自定义Opener
  • 原文地址:https://www.cnblogs.com/DZzzz/p/13183494.html
Copyright © 2011-2022 走看看