一、该问题的重现步骤是什么?
1. 执行 yarn install,提示如下错误,saber版本是Saber3
yarn install
yarn install v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To clear this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
error TypeError [ERR_INVALID_CHAR]: https://center.javablade.com/api/packages/blade/npm/%40saber%2Fnf-design-base-elp/-/1.2.0/nf-design-base-elp-1.2.0.tgz: Invalid character in header content ["authorization"]
at ClientRequest.setHeader (node:_http_outgoing:651:3)
at new ClientRequest (node:_http_client:291:14)
at Object.request (node:https:358:10)
at module.exports.Request.start (C:\Users\li\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141972:32)
at module.exports.Request.end (C:\Users\li\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:142731:10)
at end (C:\Users\li\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141785:14)
at Immediate.<anonymous> (C:\Users\li\AppData\Roaming\npm\node_modules\yarn\lib\cli.js:141799:7)
at process.processImmediate (node:internal/timers:476:21)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
2.
3.
二、你期待的结果是什么?实际看到的又是什么?
三、你正在使用的是什么产品,什么版本?在什么操作系统上?
四、请提供详细的错误堆栈信息,这很重要。
五、若有更多详细信息,请在下面提供。
扫一扫访问 Blade技术社区 移动端