rra*_*lvv 6 node.js npm react-native yarnpkg
我正在尝试安装此repo的所有依赖项:https: //github.com/react-community/react-navigation
问题是,Yarn似乎已将脱机软件包存储在除缓存目录之外的某个位置,并且它很快就会耗尽系统驱动器中的空间.我清理了cache(yarn cache clean
)并删除了modules文件夹(node_modules/
),然后运行yarn
并确定它在不到5分钟内安装了大约4GB的依赖项(互联网连接为2 MB)
作为一个方面说明,我想知道是否有禁止在这两个缓存的方式yarn
和npm
.
正如https://github.com/yarnpkg/yarn/issues/2049所说,它们存储在以下位置:
Run Code Online (Sandbox Code Playgroud)%LOCALAPPDATA%/Yarn/config/global on Windows ~/.config/yarn/global on OSX and non-root Linux /usr/local/share/.config/yarn/global on Linux if logged in as root
我认为禁用缓存目前是纱线的一个开放主题:https://github.com/yarnpkg/rfcs/pull/53
就其价值而言,所有节点版本都具有默认的纱线版本和缓存位置:-
\n\xe2\x9d\xaf for i in boron carbon dubnium erbium fermium; \\\n docker run -it node:$i bash -c "yarn --version && yarn cache dir"\n1.15.2\n/usr/local/share/.cache/yarn/v4\n1.21.1\n/usr/local/share/.cache/yarn/v6\n1.22.4\n/usr/local/share/.cache/yarn/v6\n1.22.4\n/usr/local/share/.cache/yarn/v6\n1.22.5\n/usr/local/share/.cache/yarn/v6\n
Run Code Online (Sandbox Code Playgroud)\n
归档时间: |
|
查看次数: |
3653 次 |
最近记录: |