Node.js 来自Beanstalk的NPM自定义URL模块

Node.js 来自Beanstalk的NPM自定义URL模块,node.js,package,npm,Node.js,Package,Npm,我正在尝试将package.json文件中的依赖项设置为远程beanstalk存储库,以便将其包含在项目中 目前,其设置如下所示: { "name": "SOME_NAME", "version": "0.0.1", "private": true, "dependencies": { "SOME_MODULE_NAME" : "git@xxx.beanstalkapp.com:/xxx.git#v0.0.1" } } 但是,这将返回以下npm错误: npm WAR

我正在尝试将package.json文件中的依赖项设置为远程beanstalk存储库,以便将其包含在项目中

目前,其设置如下所示:

{
  "name": "SOME_NAME",
  "version": "0.0.1",
  "private": true,
  "dependencies": {
    "SOME_MODULE_NAME" : "git@xxx.beanstalkapp.com:/xxx.git#v0.0.1"
  }
}
但是,这将返回以下npm错误:

npm WARN package.json SOME_NAME@0.0.1 No README.md file found!
npm http GET https://registry.npmjs.org/SOME_MODULE_NAME
npm http 404 https://registry.npmjs.org/SOME_MODULE_NAME
npm ERR! 404 'SOME_MODULE_NAME' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.
它似乎绕过了beanstalk url,转而在全局repo中查找模块。有什么想法/建议吗

我还尝试使用git+ssh://样式的url,但没有任何效果

谢谢

参见“”

Git URL的格式可以是:

git://github.com/user/project.git#commit-ish
git+ssh://user@hostname:project.git#commit-ish
git+ssh://user@hostname/project.git#commit-ish
git+http://user@hostname/project/blah.git#commit-ish
git+https://user@hostname/project/blah.git#commit-ish
提交ish可以是任何标记、sha或分支,它们可以作为git checkout的参数提供。默认值为master

您的url应该是:

"git://xxx.beanstalkapp.com/xxx.git#v0.0.1"