You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It does not currently support caching. It was initially left out on purpose, but could be added with a plugin, or I would accept a PR that enabled it behind a config option.
The use case I originally wrote this for involved having much more explicit control over what packages could be installed in production. Enabling read-through to public npm and caching those installs is very counter to that idea, which is why it is not currently a built in feature. Instead we used (clone-packages)[https://www.npmjs.com/package/clone-packages] to load the modules we wanted to explicitly whitelist into the registry.
One reason this is a little tricky is that the registry does not currently ready the tarball for packages not in the registry. npm install happens in 2 steps, the first gets meta data about what package versions are available, the second is to determine what version to install, and to download the tarball. The url for the tarball is returned in the meta request, and unpm currently just returns the url of the tarball in the upstream registry when using the fallback.
I assumed uNpm would be a replacement for Sinopia.
However in my
/unpm/data
directory, is void of modules:Few things:
morlay/unpm
, Dockerfileairtonix/unpm-www
DockerfileThe text was updated successfully, but these errors were encountered: