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

  解决:

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

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

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

cnpm install --save-dev gulp-sass

  

  2)使用nginx进行部署的时候, 出现无法使用代理访问后台接口的情况, 需要nginx添加额外配置信息

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

 

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-08
  • 2022-01-09
  • 2021-12-14
  • 2021-05-14
  • 2021-04-25
猜你喜欢
  • 2021-08-18
  • 2022-12-23
  • 2021-12-11
  • 2021-06-16
  • 2021-08-07
  • 2022-01-12
  • 2021-11-10
相关资源
相似解决方案