meteorhacks / npm

Complete NPM integration for Meteor
http://meteorhacks.com/complete-npm-integration-for-meteor.html
MIT License
508 stars 43 forks source link

Install npm package from private github repository #118

Open marcoBros opened 8 years ago

marcoBros commented 8 years ago

Is it possible to install npm package form private github repo ?

In my packages.json file i put : { myPrivatePackage: "git+ssh://git@github.com/MY_ACCOUNT/MY_PACKAGE.git#05f1914dce_COMMIT_HASH_853e9b787558e" }

But meteor do not asking github username and password. And give me this error :

While reading package from ./packages/npm-container: package.js:14:7: must declare exact version of dependency: MY_PACKAGE@git+ssh://git@github.com/MY_ACCOUNT/MY_PACKAGE.git#05f1914dce_COMMIT_HASH_853e9b787558e

Is there another way ? Perhaps to install from local directory ?

luzlab commented 8 years ago

I'm encountering the same problem. Installing from a private git repo works in Meteor 1.3.2, but I'm running meteor 1.2.1.

I've tried using the following references in my packages.json: "":"git+ssh://github.com//.git#0.0.0" "":"git+ssh://github.com///archive/0.0.0.tar.gz" "":"git+ssh://github.com///archive/.tar.gz" "":"git+ssh://github.com//.git#"

I can't upgrade to meteor 1.3 since 1.2 is the latest version with available ARM binaries (I'm running this on a pi3).

If there's a workaround, like installing from a local directory, I'd appreciate any details or instructions!

Thank you!