1.0.12 • Published 2 years ago

lxf-admin-cli v1.0.12

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

这是一个自定义的 cli

image.png

lxfVueAdminCli

1.Error: 'git clone' failed with status 128

解决:地址要保证使用的是https模式,地址加前缀,例如:

direct:https://github.com/luochenLing/XXX.git

或者

github 为了政治正确 把默认分支改成了main,让后这个包已经很久没有更新了,不能正确处理默认的main分支 ,手动改成master就可以了

2.Error: 'git checkout' failed with status 1

解决:保证你拥有master分支(不指定分支的情况),我之前的项目就只有一个分支叫main,不符合分支要求,所以会报错,但是他也会下载下来,只是提示不好看 但是如果指定分支的话不会报错,例如:

direct:https://github.com/luochenLing/XXX.git#main

就会下载main分支下的了

强制解除创建的某个特定全局链接

sudo npm rm --global packageName

npm link 是将当前目录包链接到全局 npm remove -g pka-name 是将全局的链接的 pkg-name 包移除 npm unlink pka-name 是将当前项目中软链接的包移除