zoukankan      html  css  js  c++  java
  • angular-cli环境搭建过程中常遇到的npm install问题

    1. #You got to add python to your PATH variable. One thing you can do is Edit your Path variable now and add#
      原因:python环境未安装

      解决方法:npm install --global --production windows-build-tools

    2. #angular-cli has been renamed to @angular/cli. Please update your dependencies#
      原因:在npm下需使用@angular/cli安装angular-cli,并且它只支持Node6.9.0+,npm3+
      解决方法:npm install -g @angular-cli@latest

    3. #deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue#
      原因:minimatch@2.0.10被废弃,需要更新至3.0.2或更高版本才能避免 RegExp DoS问题
      解决方法:
      npm update minimatch@3.0.2
                     npm update -d

        以上均是使用npm安装才会出现的问题,其实只要使用淘宝的npm镜像,就可以避免这些问题,具体使用如下:


  • 相关阅读:
    webkit特有的css属性
    js apply/call/caller/callee/bind使用方法与区别分析
    canvas
    seajs
    div 等高
    js常用函数
    浮动元素水平居中
    JavaScript的9个陷阱及评点
    Touch Event
    js跨域问题
  • 原文地址:https://www.cnblogs.com/chinghung/p/7687831.html
Copyright © 2011-2022 走看看