zoukankan      html  css  js  c++  java
  • 关于环境配置的随笔

    问题一:

    'xxx' 不是内部或外部命令,也不是可运行的程序 或批处理文件。

    说明: 当前插件环境配置有问题。

    解决:找到当前插件的.cmd文件所在位置,将路径添加到pash里面。 pash位置: 我的电脑>属性>高级系统设置>环境变量>系统变量>找到pash>点击编辑>点击新增>添加路径>一路确定。

     

    问题二:

    npm i 报错 :npm ERR! registry error parsing json

    解决: 

    (1)通过config命令
    打开命令行,输入npm config set registry https://registry.npm.taobao.org 

    然后通过npm info underscore 来检查是否配置成功(如果上面配置正确这个命令会有字符串response)

    (2)命令行指定
    npm --registry https://registry.npm.taobao.org info underscore 
    (3)编辑 ~/.npmrc 加入下面内容
    registry = https://registry.npm.taobao.org

    使用以上3中任一种皆可。从原博看,貌似该问题的产生与国内的防火墙有关。

     

    问题三:

     有的插件在淘宝镜像安装不了,就要在别的路径下安装。

    解决:

    ## @yfmd 开头的插件
    执行步骤
    * npm set registry http://npm.muzhiyun.cn
    * npm login 进行登录. mz_liuna  123456
    * npm i 进行插件安装
  • 相关阅读:
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    iOS
    【转】idea 用maven骨架生成项目速度慢的问题
  • 原文地址:https://www.cnblogs.com/liuna/p/7137759.html
Copyright © 2011-2022 走看看