简体   繁体   中英

`npm cache add <tgz>` does not work

I pack an NPM library with:

tarball=$(npm pack)

then I run

npm cache add "$PWD/$tarball"

but when I inspect the npm cache in .npm , there's nothing new there.

Does anyone know why the NPM cache would not get updated by the add command?

I came across the very same problem on Windows2012 machine when using npm version 5.3.0. Moving on to 5.6.0 it is no longer a problem.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM