zoukankan      html  css  js  c++  java
  • nodejs 安装出错总结

    1、npm无法安装模块,重新安装nodejs之前要 删除node下的文件(主要是npm包,不然安装是徒劳)

    2、npm config list -l 查看git配置

    3、

    Downloading binary from https://github.com/sass/node-sass/releases/download/vhttps://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz/win32-x64-57_binding.node
    Cannot download "https://github.com/sass/node-sass/releases/download/vhttps://registry.npmjs.org/node-sass/-/node-sass-4.5.3.tgz/win32-x64-57_binding.node":
    
    HTTP error 404 Not Found

    rm -rf node_modules
    rm package-lock.json
    npm cache clean
    npm install
    

      

    4、 nrm切换npm源利器

    npm install -g nrm
    
    nrm ls
    
    nrm use npm
    
    nrm add添加源
    
    nrm del删除源
    
    nrm test测试源的响应时间,可以作为使用哪个源的参考
    

      

    5、本机node-sass模块 通过npm(cnpm) install node-sass 无法下载的问题

          (总结出来解决问题还是要从最初的错误开始查起,因为后面的错误很可能是由第一个错误引起。仔细分析错误,查询错误的原因):  

    现象:
        Downloading binary from https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-57_binding.node
    Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-57_binding.node":
    
    
    解决:
        从以上地址下载文件(win32-x64-57_binding.node)放入:
          C:UsersAdministratorAppDataRoaming
    pm-cache
    ode-sass4.7.2 下
    

      最终还是 百度:Cannot download "https://github.com/sass/node-sass/releases/download/v4.7.2/win32-x64-57_binding.node": 搜索出来了。

  • 相关阅读:
    开发工具
    人脸识别
    mysql 3813:Column check constraint 'tb_course_chk_3' references other column.
    sleep()和wait()的异同
    线程通信——wait(),notify(),notifyAll()
    对王建民老师的评价&JAVA结课自我总结
    JAVA学习日报 12/19
    JAVA学习日报 12/18
    JAVA学习日报 12/17
    JAVA学习日报 12/11
  • 原文地址:https://www.cnblogs.com/Mvloveyouforever/p/8253457.html
Copyright © 2011-2022 走看看