yarn--verbose命令

栏目: NodeJs 发布时间:2022-02-15

使用 yarn 安装依赖包

$ yarn
yarn install v1.19.1
warning ../../package.json: No license field
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
[3/4] 🔗  Linking dependencies...
[4/4] 🔨  Building fresh packages...
✨  Done in 5.95s.

使用 yarn --verbose

使用 yarn --verbose 可以展示详细安装过程信息,对于包的安装调试非常有用。

 $ yarn --verbose
yarn install v1.19.1
warning ../../package.json: No license field
verbose 0.453537431 Checking for configuration file "/Users/teng/Downloads/0215/.npmrc".
verbose 0.454731683 Checking for configuration file "/Users/teng/.npmrc".
verbose 0.455675902 Found configuration file "/Users/teng/.npmrc".
verbose 0.458505271 Checking for configuration file "/usr/local/etc/npmrc".
verbose 0.4597321 Found configuration file "/usr/local/etc/npmrc".
verbose 0.461008252 Checking for configuration file "/Users/teng/Downloads/0215/.npmrc".
verbose 0.46181476 Checking for configuration file "/Users/teng/Downloads/.npmrc".
verbose 0.462482914 Checking for configuration file "/Users/teng/.npmrc".
verbose 0.462949705 Found configuration file "/Users/teng/.npmrc".
verbose 0.465715502 Checking for configuration file "/Users/.npmrc".
verbose 0.482803295 Checking for configuration file "/Users/teng/Downloads/0215/.yarnrc".
verbose 0.483418382 Checking for configuration file "/Users/teng/.yarnrc".
verbose 0.483786265 Found configuration file "/Users/teng/.yarnrc".
verbose 0.485707548 Checking for configuration file "/usr/local/etc/yarnrc".
verbose 0.488534003 Checking for configuration file "/Users/teng/Downloads/0215/.yarnrc".
verbose 0.490599237 Checking for configuration file "/Users/teng/Downloads/.yarnrc".
verbose 0.493375123 Checking for configuration file "/Users/teng/.yarnrc".
verbose 0.49648842 Found configuration file "/Users/teng/.yarnrc".
verbose 0.497646151 Checking for configuration file "/Users/.yarnrc".
verbose 0.515482739 current time: 2022-02-15T03:50:59.668Z
[1/4] 🔍  Resolving packages...
[2/4] 🚚  Fetching packages...
verbose 0.704634548 Performing "GET" request to "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz".
[3/4] 🔗  Linking dependencies...
verbose 4.180699441 Creating directory "/Users/teng/Downloads/0215/node_modules/lodash".
verbose 4.264011776 Creating directory "/Users/teng/Downloads/0215/node_modules/lodash/fp".
verbose 4.365270419 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/LICENSE" to "/Users/teng/Downloads/0215/node_modules/lodash/LICENSE".
verbose 4.366720505 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/README.md" to "/Users/teng/Downloads/0215/node_modules/lodash/README.md".
verbose 4.367319539 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/_DataView.js" to "/Users/teng/Downloads/0215/node_modules/lodash/_DataView.js".
verbose 4.367712872 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/_Hash.js" to "/Users/teng/Downloads/0215/node_modules/lodash/_Hash.js".
verbose 4.368035727 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/_LazyWrapper.js" to "/Users/teng/Downloads/0215/node_modules/lodash/_LazyWrapper.js".
verbose 4.368379207 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/_ListCache.js" to "/Users/teng/Downloads/0215/node_modules/lodash/_ListCache.js".
verbose 4.368705869 Copying "/Users/teng/Library/Caches/Yarn/v6/npm-lodash-4.17.21-679591c564c3bffaae8454cf0b3df370c3d6911c-integrity/node_modules/lodash/_LodashWrapper.js" to "/Users/teng/Downloads/0215/node_modules/lodash/_LodashWrapper.js".
...此处省略一段日志
[4/4] 🔨  Building fresh packages...
✨  Done in 6.92s.

本文地址:https://www.tides.cn/p_node-yarn-verbose

标签: yarn