zoukankan      html  css  js  c++  java
  • 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)
  • 相关阅读:
    oracle 批量修改表名 字段为大写197
    身份证附件上传样例197
    npm 设置源197
    manajo常用命令197
    vue 父组件向子组件传参197
    将BAT文件注册为服务197
    teaweb — linux 系统资源监控
    glances — linux 系统资源监控
    emitter-Client
    urlencode编码 — 为什么要编码
  • 原文地址:https://www.cnblogs.com/legendjslc/p/12367062.html
Copyright © 2011-2022 走看看