zoukankan      html  css  js  c++  java
  • node升级后,项目中的node-sass报错的问题

    之前可能因为电脑不知道哪抽风了,在npm build的时候进入就卡在入口的地方,启动express的时候也会,所以就重装了一下node

    1. 重装node
      其实也不是重装,就是使用 where node 查看node的安装目录,然后下载新版本的node,覆盖安装就是了
    2. 原本node v8.x 更新后 node v10.x,但是express启动还是卡主了,不懂什么原因,但是悲剧的是,原来的vue详情启动的时候就报错了。。。
      ···
      Module build failed: Error: Missing binding G:myCodeYBclientappsAccountV4 ode_modules_node-sass@4.9.0@node-sassvendorwin32-x64-64inding.node
      Node Sass could not find a binding for your current environment: Windows 64-bit with Node.js 10.x

    Found bindings for the following environments:

    • Windows 64-bit with Node.js 8.x
      ···
      报错大概就这段比较看得出问题。。。
    1. 解决办法
      网上找了一下,需要重装node-sass包
      所以呢
      ···
      npm rebuild node-sass
      ···
      安装完重新启动就ok了, 所以没事还是别更新node,最好保持团队的环境一致~
  • 相关阅读:
    126.输入输出深入以及小结
    125.C++输入小结
    124.C++输出小结
    123.static静态函数与类模板
    123.static静态函数和函数模板
    122.模板与友元
    121.类模板当做参数
    120.嵌套类模板
    119.类模板的默认参数规则
    正睿 2019 省选附加赛 Day1 T1 考考试
  • 原文地址:https://www.cnblogs.com/milo-wjh/p/9175138.html
Copyright © 2011-2022 走看看