Skip to content
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

URLS disappearing from cache. #39

Open
NazneenRupawalla opened this issue Jul 4, 2014 · 0 comments
Open

URLS disappearing from cache. #39

NazneenRupawalla opened this issue Jul 4, 2014 · 0 comments

Comments

@NazneenRupawalla
Copy link

I've setup npm_lazy on my localhost.

I set the registry and ran the command to install socket.io.

When the network connection is up, it installs it and also adds the URL to the cache:

app debug cache get https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz

app debug [GET] https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz

app debug [done][SHASUM OK] added to cache https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz socket.io-adapter-0.2.0.tgz /Users/*/.npm_lazy/012ao21u4q9kvs4i

The meta.json file too contains it:

"https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz": { "taskResults": { "GET": { "path": "/Users/*/.npm_lazy/012ao21u4q9kvs4i" }}}

Now, when the network connection is down, I try to install the package again:
But it fails

The logs -

app error [500] Error: [Error: URL is not in the npm_lazy cache, and it cannot be fetched (max retries exhausted): https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz]

and the metadata too is not present in meta.json file.

Why is it so? Is it possible that I have missed any configurations?

I am facing this error for three packages that are available in the meta.json i.e gets cached but then it cannot find in it in cache, once I retry to install it.

app error [500] Error: [Error: URL is not in the npm_lazy cache, and it cannot be fetched (max retries exhausted): https://registry.npmjs.org/engine.io/-/engine.io-1.3.1.tgz]

app error [500] Error: [Error: URL is not in the npm_lazy cache, and it cannot be fetched (max retries exhausted): https://registry.npmjs.org/socket.io-client/-/socket.io-client-1.0.6.tgz]

app error [500] Error: [Error: URL is not in the npm_lazy cache, and it cannot be fetched (max retries exhausted): https://registry.npmjs.org/socket.io-adapter/-/socket.io-adapter-0.2.0.tgz]

I did try the option you put across in #34, but it still fails.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant