-
Notifications
You must be signed in to change notification settings - Fork 3k
npm install --no-registry does not work with cache #3691
Comments
Anyone have any idea why this doesn't work or how to get it working? I'm trying to avoid depending on the npm registry for deployment (what with all the downtime) and just when I though I'd found a workable solution for my situation I ran into the "No registry url provided" error. |
|
@khalsah if you want, you can set the cache-min config to a really large value to always install from your cache if something exists:
|
sorry, but were not able to reproduce this, works for me. but the right usage to add something to the cache is:
|
@bbaia can i get a short feedback if that solves your issue? |
|
Looks like
|
@bbaia what is your npm version? i am asking because of https://github.com/isaacs/npm/issues/1738#issuecomment-26885594 - the comment by @tomyan |
I'm using node@0.10.13, I'll update to latest version and test it monday. |
Still fail with |
|
I guess I should say "how" it fails: Errror
My cache
npm version
|
The workaround here works for |
The workaround doesn't work for me |
it appears that --no-registry seems broken before and after npm version 1.3.26 - that's the only version I could get it to work with |
True offline support is waiting on the npm cache rewrite. It's still top of mind for me, I just have a lot of projects in flight right now. |
* npm/npm#3691 * npm/npm#5509 Signed-off-by: Martin Jansa <martin.jansa@lge.com>
@othiym23 The link you posted to to the npm cache rewrite is now broken and does not lead anywhere. Has this initiative been dropped? Where can I get the most up-to-date info about this? |
I'm trying to setup an offline build server with nodejs and grunt-cli but I can't make it work with cache and --no-registry option.
I was expecting this to work:
got an error on npm install: "No registry url provided: GET nopt".
Note that no '.cache.json' have been generated since I have a fresh install of nodejs for windows.
The text was updated successfully, but these errors were encountered: