zoukankan      html  css  js  c++  java
  • Npm 被公司墙解决方法

    npm被公司墙了,不能用npm安装任何包应用了。

    npm ERR! Darwin 15.5.0
    npm ERR! argv "/usr/local/Cellar/node/6.4.0/bin/node" "/usr/local/bin/npm" "install" "webpack"
    npm ERR! node v6.4.0
    npm ERR! npm v3.10.3
    npm ERR! code UNABLE_TO_GET_ISSUER_CERT_LOCALLY
    
    npm ERR! unable to get local issuer certificate
    npm ERR! 
    npm ERR! If you need help, you may report this error at:
    npm ERR! <https://github.com/npm/npm/issues>
    
    npm ERR! Please include the following file with any support request:
    npm ERR! /Users/huangtaizhao/les/react/npm-debug.log

    在确定所安装的包是安全的情况下,可以这样做(关闭npm的https):

    npm config set strict-ssl false

    ➜  npm config set strict-ssl false

  • 相关阅读:
    多个数字和数字字符串混合运算规则
    关于js对象引用的小例子
    实现函数 isInteger(x) 来判断 x 是否是整数
    写一个少于 80 字符的函数,判断一个字符串是不是回文字符串
    关于数组排序
    事件委托(事件代理)的原理以及优缺点是什么?
    将url的查询参数解析成字典对象
    js dom操作获取节点的一些方法
    js中arguments的应用
    深度克隆---js对象引用
  • 原文地址:https://www.cnblogs.com/joejs/p/6728144.html
Copyright © 2011-2022 走看看