npm会报奇怪的错误: timing config:load:flatten completed in 4ms

先说解决办法

解决办法:删除工作区留下的旧文件 删除npmrc .npmrcWARN ignoring workspace config at /path/to/.npmrc

目前这个问题只存在于新版的node中 v16.14.0

 

0 verbose cli D:\nodejs\node.exe D:\nodejs\node_modules\npm\bin\npm-cli.js 1 info using npm@9.6.7 2 info using node@v18.17.0 3 timing npm:load:whichnode Completed in 3ms 4 timing config:load:defaults Completed in 2ms 5 timing config:load:file:D:\nodejs\node_modules\npm\npmrc Completed in 2ms 6 timing config:load:builtin Completed in 3ms 7 timing config:load:cli Completed in 1ms 8 timing config:load:env Completed in 1ms 9 timing config:load:project Completed in 1ms 10 timing config:load:file:C:\Users\lenovo\.npmrc Completed in 0ms 11 timing config:load:user Completed in 0ms 12 timing config:load:file:C:\Users\lenovo\AppData\Roaming\npm\etc\npmrc Completed in 1ms 13 timing config:load:global Completed in 1ms 14 timing config:load:setEnvs Completed in 1ms 15 timing config:load Completed in 10ms 16 timing npm:load:configload Completed in 10ms 17 timing npm:load:mkdirpcache Completed in 0ms 18 timing npm:load:mkdirplogs Completed in 1ms 19 verbose title npm prefix 20 verbose argv "prefix" "--global" 21 timing npm:load:setTitle Completed in 1ms 22 timing config:load:flatten Completed in 2ms 23 timing npm:load:display Completed in 3ms 24 verbose logfile logs-max:10 dir:C:\Users\lenovo\AppData\Local\npm-cache\_logs\2023-07-20T05_20_48_163Z- 25 verbose logfile C:\Users\lenovo\AppData\Local\npm-cache\_logs\2023-07-20T05_20_48_163Z-debug-0.log 26 timing npm:load:logFile Completed in 9ms 27 timing npm:load:timers Completed in 0ms 28 timing npm:load:configScope Completed in 0ms 29 timing npm:load Completed in 27ms 30 timing command:prefix Completed in 1ms 31 verbose exit 0 32 timing npm Completed in 38ms 33 info ok
07-21
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值