随笔分类 - 部署相关
摘要:搬运:https://blog.csdn.net/qq_25231683/article/details/120762573 cd /home // 下载 wget https://nodejs.org/dist/v14.18.1/node-v14.18.1-linux-x64.tar.xz //
阅读全文
摘要:解决:降低yarn的版本,从1.22降到了1.18 yarn policies set-version 1.18.0
阅读全文
摘要:can't find module react-scripts 原因:分包版本与root安装版本不一致, 解决:在分别下安装指定版本,yarn add react-scripts@3.4.1
阅读全文
摘要:No packages found where lodash can be added 解决:去对应分包,用npm 安装,然后lerna bootstrap
阅读全文
摘要:An unexpected error occurred: "expected workspace package to exist for \"@babel/core\"". 解决方法: yarn policies set-version 1.18.0
阅读全文
摘要:1. pm2 安装并设置自启: 参考 2. 项目运行npm run build,生成build目录 3. 安装 pushstate-server npm install pushstate-server --save 4. 在项目根目录新建server.js var server = require
阅读全文
摘要://以elasticsearch容器为例 //运行es docker run -d -p 9200:9200 elasticsearch:5.4 //查看已运行的容器 docker ps //进去容器内部,找到需要拷贝的文件及目录 docker exec -it 2c2600fb60f8 /bin/bash //从容器中退出 exit //将container id为4db8edd86202的容器
阅读全文
摘要:{ parser: "babylon" } is deprecated; we now treat it as { parser: "babel" }.
阅读全文
摘要:component lists rendered with v-for should have explicit keys
阅读全文
摘要:This relative module was not found
阅读全文
摘要:mongod 命令执行发现已经有进程在运行mongod数据库--errno:48 Address already in use for socket: 0.0.0.0:27017 错误信息: listen(): bind() failed errno:48 Address already in us
阅读全文
摘要:step1、进入到/opt/下执行 下载 wget https://fastdl.mongodb.org/linux/mongodb-linux-x86_64-rhel70-3.6.5.tgz step2、解压 tar -zxvf mongodb-linux-x86_64-rhel70-3.6.5.
阅读全文
摘要:在项目根目录新建postcss.config.js文件,添加上述内容。
阅读全文
摘要:安装 自启 启动 (以实际路径为准) 其他命令: pm2 list #查看进程pm2 stop/reload/restart/delete all #停止/重载/重启/删除 所有进程pm2 stop/reload/restart/delete 0 #停止/重载/重启/删除 pm2进程列表中进程为0的
阅读全文
摘要:2020-12-30 补充修正。。。 下载 cd /usr/local/ wget https://npm.taobao.org/mirrors/node/v10.14.1/node-v10.14.1-linux-x64.tar.gz 解压 tar -xvf node-v10.14.1-linux-
阅读全文
摘要:下载安装包: 解压: 解压(目录对应以实际为准): 创建目录: 注意日志是文件而不是目录,不然后续启动会报错:child process failed, exited with error number 1 手动启动(注意实际路径对应): 开机自启:
阅读全文
摘要:缓存问题导致 需要删除npmrc文件。 强调:不是nodejs安装目录npm模块下的那个npmrc文件 而是在C:\Users\{账户}\下的.npmrc文件..
阅读全文
摘要:npm run build报错 No PostCSS Config found in
阅读全文