天天看点

Vue之常见问题

  

  1) 使用命令 npm  install 安装依赖包的时候,出现错误:

checking for Python executable "python2" in the PATH

  解决:

使用cnpm 来安装:
具体做法:

安装cnpm
npm install cnpm -g --registry=https://registry.npm.taobao.org

安装gulp-sass
语法都是一样的,只是将npm换成cnpm

cnpm install --save-dev gulp-sass      

  

location /api {
    rewrite ^.+api/?(.*)$ /$1 break;
    include uwsgi_params;
    proxy_pass http://d.xxx.com;
}      

继续阅读