-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Can't install when behind an npm proxy such as Nexus or Artifactory #706
Comments
May I possibly ask what's version of Nexus? |
Sonatype Nexus 2.11.4-01 |
I could see scoped npm package support on Nexus is implemented in Nexus 3 Milestone 6. Maybe this is reason of failure? Is it possible to isolate with updates Nexus? |
Hmmm...that looks like it could be the culprit. I'm not sure what you mean with the last sentence. Are you asking if I can try with Nexus 3 Milestone 6? I may be able to, but I'll need to set up a sandbox for that. |
Yes, exactly. If that can be verified, we'll know for sure it's related with Nexus. |
Ok....looks like M6 came out today. If I wait a day or so, there may be Docker support which would make it really easy to try out. I'll grab it and run a test once I'm able to get M6. |
Ok, thank you Docker. I got a 3.0 M6 docker container. Still doesn't work for angular2. Just to be safe, I was able to use the 3.0M6 to successfully install things like phantomjs and angular.
|
Thanks for taking time for tryout. Hoped version upgrade resolves issues :) It seems now error logs are somewhat different than original, not sure which dependency of angular 2 is hitting. Would you mind to check if installing RxJS itself directly to see scoped package is actually resolved? Meanwhile I'll give a shot with those container, expect it'll take some time though. |
Hi, I too am having a similar problem - behind a proxy, using Nexus - but an older version that isn't likely to be upgraded soon :/
|
@freeranger , those error message seems closure compiler cannot be found. RxJS |
@freeranger I've had similar issues at companies I've worked with that had archaic proxies. Sometimes they blocked downloading packages that had jar files or other binaries. Sometimes they just blocked certain ports that were required for install. What I generally ended up doing is downloading a zip of the missing packages and installing them manually, and/or installing them while I wasn't behind the proxy. It sucks, but so do older proxies :). I appreciate your interest in contributing, and I really wish I had a better solution. You might just go look and see what it takes to manually install closure compiler. |
Hi, Our CI builds are done using Team City on any number of agent machines. The agent machines cannot require manual setup, but the build can of course do npm install's and we can provide folders of stuff to reference if need be, so if there was an already built version out there or a way to download the npm package (which would not cause it to try to build) which I could then stick in a folder then that would work. I did an "npm install google-closure-compiler" (I also have it installed globally "just incase". I can see it is in the node_modules folder and has the compiler.jar file there, but it still fails when I try to npm install rxjs from a folder:
|
@freeranger out of curiousity, why are you building this project in your own CI environment? |
I don't want to build it, believe me! I just want to use it but nexus, or at least the version we have to use, does not support scoped packages so I grabbed a zip of the repo and did an npm install pointing to the folder I unzipped to, and it tried to build. |
@freeranger I see. You could always just download it from the CDN: http://npmcdn.com/@reactivex/rxjs@5.0.0-alpha.10/dist/global/Rx.js |
Unfortunately it's not that simple - I am trying to use ng-Forward which has a dependency on @reactivex/rxjs so I need an npm installed reactivex/rxjs to satisfy it's requirements :/ |
It seems to be an issue with the "/" in the path name which is not correctly escaped by Nexus and not and ReactiveX issue. My solution was to temporarily disable the custom registry url in my .npmrc, and as I currently only use it for testing it was a viable option, but if you want to use it in production I don't have an idea, either ... |
@freeranger: As of right now you can install either the CommonJS or the ES6 versions of this library with @timothydowney does the above also resolve your issues? |
Came across this after trying to install ng-2. Just had to comment out the registry in my |
Okay, since this issue has fallen stale, I'm going to close it. |
Sorry I didn't see your previous comment. I am trying to use ng-Forward which has a dependency on @reactivex/rxjs so I need an npm installed reactivex/rxjs to satisfy it's requirements - no other variation will do. I am not in control of ngForward so I can't change its dependencies |
@redtony , seems ng-forward has plans to upgrade dependency not to use scoped package. (ngUpgraders/ng-forward#122 (comment)) Will this be resolution for your problem? (though you may need wait bit and update ng-forward accordingly) |
@kwonoj yes thanks, good spot! |
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
Hi,
I'm encountering problems with @reactivex/rxjs that originated when trying to install angular2. I'm currently using a local Nexus as an npm proxy repository and encountering problems when trying to npm install reactivex. Searching around shows what appears to be another person with the same problem behind an Artifactory. I can't tell if it is a Nexus/Artifactory bug around the @ sign or something else.
Anyhow, I'm hoping that someone can shed some light on it in case others are seeing it.
I am able to install when I don't use my Nexus proxy.
Here's the error:
The text was updated successfully, but these errors were encountered: