-
Notifications
You must be signed in to change notification settings - Fork 11
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
Is it possible to use modules located for example on github? #22
Comments
I have a similar/equal problem:
In my case it is above visible dependency which is successfully included in the tree but it appears npm still wants to access the internet. |
The respective The tricky bit is some of the packages that are published upstream on the npm registry include these ssh:// and related non-registry locations. So, solution would need to be 2 step,
|
@AdamMajer I don't know how but something is already there. The registry stil just checks for another version. I am not sure however why because in my case it would have been a sufficient one. |
"Registry" doesn't check for anything. It's just a dumb piece of software serving What we have done with parts of cockpit is to replace the dependency with a version. So instead of The nasty problem is this also appears in packages fetched from upstream npm registry. This service will download the packages from git or https and make a tarball. But content of |
@AdamMajer Is it realistic that this gets solved soon? Or what can be done to help? Packaging Jitsi for example would get much easier with this service... |
This is now resolved via 1daa6a2 There are some caveats that are related to npm itself. For example, a dependency with https:// referring to git repo, needs to be changed to git+https://git@... due to npm/cli#2610 -- resolved deps will get your local git+ssh:// resolution and then things break. So, for example,
then run the node_modules service. THEN you need to patch the package.json with actual version you get from the git repo for npm to resolve it in the build VM to the ones that are available locally (including the github pulled version) to the npm-localhost-registry program.
You can look in OBS at the |
Is it possible to use modules located for example on github?
The module is loaded and packaged in
node_modules
, but when it is built, it still tries to load over the Internet.For example, the
package-lock.json
file contains a moduleit is loaded and packaged with all modules
but when building it throws an error
The text was updated successfully, but these errors were encountered: