close
The Wayback Machine - https://web.archive.org/web/20200614041037/https://github.com/surmon-china/nodepress/issues/11
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm install error : 依赖的包(mongoose-paginate.git)不存在 #11

Open
qingfengming opened this issue Sep 23, 2018 · 6 comments
Open

Comments

@qingfengming
Copy link

@qingfengming qingfengming commented Sep 23, 2018

npm install error : 依赖的包(ssh://github.com/surmon-china/mongoose-paginate.git)不存在

i@mingbai:~/node/nodepress$ npm install
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t ssh://git@github.com/surmon-china/mongoose-paginate.git
npm ERR! 
npm ERR! Permission denied (publickey).
npm ERR! fatal: 无法读取远程仓库。
npm ERR! 
npm ERR! 请确认您有正确的访问权限并且仓库存在。
npm ERR! 
npm ERR! exited with error code: 128

我查看了相应的git地址,好像没有这个项目。换成其他开源的同名项目,并且把ssh 协议改为http,可以正常运行,但是不知道这么改是否合适,也不太明白为什么会有ssh的依赖,故有此一问。

@surmon-china
Copy link
Owner

@surmon-china surmon-china commented Sep 24, 2018

因为这个包作者很久没有更新了,有个小 bug,修复后就暂时放在自己项目里,作者不维护所以也没法提 Issues,但这个项目不是私有的,理论上都应该可以访问,你单纯把链接改为 HTTPS 试试,如果可行,我会更新一下

https://github.com/surmon-china/mongoose-paginate

@qingfengming
Copy link
Author

@qingfengming qingfengming commented Sep 24, 2018

试了一下,可以

@surmon-china
Copy link
Owner

@surmon-china surmon-china commented Sep 26, 2018

我找了相关的解决方案,目前没有把 dependencies 依赖项依赖 https 地址的,所以我暂时没有做修改。

@surmon-china
Copy link
Owner

@surmon-china surmon-china commented Sep 26, 2018

我找了相关的解决方案,目前没有把 dependencies 依赖项依赖 https 地址的,所以我暂时没有做修改。

@surmon-china surmon-china reopened this Sep 26, 2018
@phper-qiu
Copy link

@phper-qiu phper-qiu commented Mar 28, 2019

ssh://git@github.com:surmon-china/mongoose-paginate.git
改为
https://github.com/surmon-china/mongoose-paginate
成功

@surmon-china
Copy link
Owner

@surmon-china surmon-china commented Mar 31, 2019

已更替

@surmon-china surmon-china pinned this issue Jul 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
3 participants
You can’t perform that action at this time.