mixu/npm_lazy

URLS disappearing from cache.

Opened this issue · 0 comments

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.