青龙面板京东脚本报错安装依赖

2022-7-13 1,309 7/13

缺少moudle

1.一般出现这种错误:(缺依赖)
Error: Cannot find module  'xx'
sudo docker exec -it ql(名称) pnpm install  xx
2.一般出现这种错误:(缺文件)
Error: Cannot find module  './xx'
那就很有是拉库命令不完整,请检查或复制完整的拉库命令,看看群置顶↑😜
3.一般出现这种错误:(缺py依赖)
ModuleNotFoundError: No module named 'xxx',并且是.py结尾的脚本
sudo docker exec -it ql名称 pip3 install xxx

4.其他报错基本是脚本或者IP什么玄学问题。

常见依赖

sudo docker exec -it qinglong bash -c "npm install ts-md5"

sudo docker exec -it qinglong bash -c "npm install -g png-js"
sudo docker exec -it qinglong bash -c "npm install -g form-data"
sudo docker exec -it qinglong bash -c "npm install jsdom"
sudo docker exec -it qinglong bash -c "npm install png-js"
sudo docker exec -it qinglong bash -c "pip3 install --upgrade pip"
sudo docker exec -it qinglong bash -c "pip3 install aiohttp"
sudo docker exec -it qinglong bash -c "npm install npm@6.14.11 -g"
sudo docker exec -it qinglong bash -c "npm install axios date-fns"
sudo docker exec -it qinglong bash -c "npm install crypto -g"
sudo docker exec -it qinglong bash -c "npm install -g npm"
sudo docker exec -it qinglong bash -c "pnpm i png-js"
sudo docker exec -it qinglong bash -c "pip3 install requests"
sudo docker exec -it qinglong bash -c "apk add python3 zlib-dev gcc jpeg-dev python3-dev musl-dev freetype-dev"
sudo docker exec -it qinglong bash -c "apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && cd scripts && npm install canvas --build-from-source"
sudo docker exec -it qinglong bash -c "cd /ql/scripts/ && apk add --no-cache build-base g++ cairo-dev pango-dev giflib-dev && npm i && npm i -S ts-node typescript @types/node date-fns axios png-js canvas --build-from-source"
sudo docker exec -it qinglong bash -c "npm install -g typescript"

- THE END -

懒人

9月29日16:47

非特殊说明,本博所有文章均为博主原创。