npm install 提示error package.json Non-registry package missing package.json

在家隔离期间,用win10去拉去gitee上的包,提示 error package.json Non-registry package missing package.json

猜测是未发布到npm 导致的,如果将所有包都发布一遍也挺麻烦的,可通过一下方式添加:

npm install  https://gitee.com/tonyzhao/react-native-wechat-lib.git

或者 npm install git+https://gitee.com/tonyzhao/react-native-wechat-lib.git (地址更换成自己库)

 

posted @ 2022-03-17 09:43  碧水晴天  阅读(896)  评论(0编辑  收藏  举报