api_automation_test
api_automation_test copied to clipboard
[root@ecs-2734 frontend]# npm install 失败
39562 warn [email protected] requires a peer of webpack@^4.0.0 || ^5.0.0 but none is installed. You must install peer dependencies yourself.
39563 warn optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents):
39564 warn notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for [email protected]: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
39565 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid OS: darwin
39565 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Valid Arch: any
39565 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual OS: linux
39565 verbose notsup SKIPPING OPTIONAL DEPENDENCY: Actual Arch: x64
39566 verbose stack Error: [email protected] install: node install.js
39566 verbose stack Exit status 1
39566 verbose stack at EventEmitter.node install.js
39575 error Exit status 1
39576 error Failed at the [email protected] install script.
39576 error This is probably not a problem with npm. There is likely additional logging output above.
39577 verbose exit [ 1, true ]
记录下我的心酸里程 框架部署
pip install -r requirements.txt #会有报错的 pip install https://github.com/darklow/django-suit/tarball/v2 #31
进入 api_automation_test/settings.py 配置数据库信息
进入到manage.py 同目录下
执行django初始化流程 python3 manage.py makemigrations python3 manage.py migrate python3 manage.py createsuperuser
切换npm镜像 npm config set registry https://registry.npm.taobao.org 查看当前镜像 npm config get registry
前端vue部署 进入 frontend目录 cd ...../api_automation_test/frontend 安装 npm run build #可能会有报错
cnpm install node-sass
ERROR:Node Sass version 6.0.1 is incompatible with ^4.0.0. 卸载 npm uninstall node-sass
安装 npm install [email protected] 如有报错 重装淘宝镜像 npm install -g cnpm --registry=https://registry.npm.taobao.org
再次安装 npm run build
启动服务 python manage.py runserver 0:80 # 0是本地所有IP地址,80是端口
但是我发现登录超级慢,而且也没进到系统里面 。。。。