Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我尝试将本地项目添加到 npm 缓存中,似乎没有任何内容添加到 .npm 目录中:
"$(npm get cache)" => "$HOME/.npm"
给定 npm 缓存位置,我们这样做:
rm -rf "$HOME/.npm" mkdir "$HOME/.npm" npm cache add "$my_npm_project_root"
命令成功,但没有任何内容添加到“$HOME/.npm”目录。
有谁知道我可能做错了什么?为什么不更新缓存?