• NPM安装nodesass失败的原因


    卸载重装都试过,还是不行。

    最根本的原因,是需要根据node版本安装不同的node-sass.

    参照:https://github.com/sass/node-sass

    NodeJSMinimum node-sass versionNode Module
    Node 13 4.13+ 79
    Node 12 4.12+ 72
    Node 11 4.10+ 67
    Node 10 4.9+ 64
    Node 8 4.5.3+ 57

    查看node版本,重新安装后,问题解决。

    PS E:DEVNetBeans
    enren-fast-vue> node -v
    v12.13.1
    PS E:DEVNetBeans
    enren-fast-vue> cnpm install node-sass@4.12.0
    √ Installed 1 packages
    √ Linked 168 latest versions
    [1/1] scripts.install node-sass@4.12.0 run "node scripts/install.js", root: "E:\DEV\NetBeans\renren-fast-vue\node_modules\_node-sass@4.12.0@node-sass"
    Downloading binary from https://cdn.npm.taobao.org/dist/node-sass/v4.12.0/win32-x64-72_binding.node
    Download complete
    nding.node
    Caching binary to C:Usersflashmx.npminstall_tarball
    ode-sass4.12.0win32-x64-72_binding.node
    [1/1] scripts.install node-sass@4.12.0 finished in 2s
    [1/1] scripts.postinstall node-sass@4.12.0 run "node scripts/build.js", root: "E:\DEV\NetBeans\renren-fast-vue\node_modules\_node-sass@4.12.0@node-sass"
    Binary found at E:DEVNetBeans
    enren-fast-vue
    ode_modules\_node-sass@4.12.0@node-sassvendorwin32-x64-72inding.node
    Testing binary
    Binary is fine
    [1/1] scripts.postinstall node-sass@4.12.0 finished in 448ms
    √ Run 1 scripts
    Recently updated (since 2020-02-19): 2 packages (detail see file E:DEVNetBeans
    enren-fast-vue
    ode_modules.recently_updates.txt)
      Today:
        → node-sass@4.12.0 › meow@3.7.0 › normalize-package-data@2.5.0 › hosted-git-info@^2.1.4(2.8.6) (01:16:32)  
    √ All packages installed (178 packages installed from npm registry, used 38s(network 30s), speed 23.62kB/s, json 169(319.54kB), tarball 380.76kB)
  • 相关阅读:
    [BZOJ3757] 苹果树
    [WC2013]糖果公园
    [SCOI2005]王室联邦
    luogu P2709 小B的询问
    [国家集训队]小Z的袜子
    [SDOI2009]HH的项链(莫队)
    [国家集训队]数颜色 / 维护队列(莫队)
    setting>SSH>sessions setting>勾选ssh Keepalive[ MobaXterm】设置保持SSH连接
    解决SSH自动断线,无响应的问题。
    Linux下使用bcwipe擦除磁盘空间
  • 原文地址:https://www.cnblogs.com/legendjslc/p/12367062.html
Copyright © 2020-2023  润新知