Support for caching npm scoped packages (e.g @angular)
Closed this issue · 6 comments
@reda-alaoui It looks like it's working
> npm --registry http://localhost:8080/ install @angular/common@2.0.2 @angular/core@2.0.2 @angular/forms@2.0.2
test@1.0.0 ~/src/test
├── @angular/common@2.0.2 extraneous
├── @angular/core@2.0.2 extraneous
├── @angular/forms@2.0.2 extraneous
├── UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12
└── UNMET PEER DEPENDENCY zone.js@^0.6.21`
> rm -r node_modules
disable wi-fi
> npm --registry http://localhost:8080/ install @angular/common@2.0.2 @angular/core@2.0.2 @angular/forms@2.0.2
> npm ls
test@1.0.0 ~/src/test
├── @angular/common@2.0.2 extraneous
├── @angular/core@2.0.2 extraneous
├── @angular/forms@2.0.2 extraneous
├── UNMET PEER DEPENDENCY rxjs@5.0.0-beta.12
└── UNMET PEER DEPENDENCY zone.js@^0.6.21
This does work.
I was able to repeat the steps shown by @finico with no issues, on npm_lazy
1.13.0, npm
3.10.8.
The issue was caused by apache httpd default configuration.
@reda-alaoui What was the issue with httpd that caused this?
@cjsfj ,
Here is the excerpt of configuration that works for me:
AllowEncodedSlashes NoDecode
ProxyPreserveHost On
ProxyPass / http://localhost:8080/ nocanon
ProxyPassReverse / http://localhost:8080/
I hope that helps
Thanks for the quick response. I did not have the AllowEncodedSlashes nor the non canon portion, but even adding those didn't fix my issue.
I'll open an issue in the hopes of getting some help
Thanks,
CJ