每次用npm都很烦人
心血来潮,想整个layui-vue,按步骤来
仓库地址:https://gitee.com/layui/layui-vue
先clone下来
git checkout https://gitee.com/layui/layui-vue.git
崩溃从这里开始,按readme先安装吧
npm i @layui/layui-vue
报错1
Unsupported URL Type "workspace:": workspace:*
查了一下,觉得这个回答靠谱 https://stackoverflow.com/questions/69220042/npm-err-unsupported-url-type-workspace-workspace
然后去安装了个yarn https://zhuanlan.zhihu.com/p/433638761
继续安装
报错2
unable to verify the first certificate
解决报错2,又换了镜像源,关了SSL https://blog.csdn.net/tester_sc/article/details/81030587
报错3
Request path contains unescaped characters
偶然发现这个
查看yarn配置,其中 'strict-ssl': true,
yarn config list
yarn config set strict-ssl false
yarn add @layui/layui-vue
终于执行完了一条npm命令(5小时,执行了一条命令)