31 Star 228 Fork 113

帝莎编程 / tov-template

 / 详情

关于pnpm版本问题

已完成
创建于  
2023-11-05 10:07

使用最新版本的pnpm,报错,安装pnpm 5的版本才正常

评论 (5)

akira888 创建了任务

@akira888 靓仔,已更新依赖,看看重新执行会不会

markthree 任务状态待办的 修改为进行中
markthree 负责人设置为markthree
markthree 添加了
 
maybe-bug
标签

 更新了版本,运行pnpm install的时候报下面的错误:

ERR_INVALID_ARG_TYPE  The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined

pnpm [ERR_INVALID_ARG_TYPE]: The first argument must be of type string or an instance of Buffer, ArrayBuffer, or Array or an Array-like Object. Received undefined
at Function.from (node:buffer:324:9)
at getAuthHeadersFromConfig (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:167875:39)
at createGetAuthHeaderByURI (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:167951:83)
at createClient (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:168001:80)
at createNewStoreController (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:180552:63)
at createOrConnectStoreController (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:180845:70)
at async installDeps (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:241182:21)
at async C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:270219:21
at async main (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:270186:34)
at async runPnpm (C:\Users\Administrator\AppData\Roaming\npm\node_modules\pnpm\dist\pnpm.cjs:270443:5)

请问具体问题是什么呢?

@akira888 靓仔,未复现你的问题,可以试试重装你的 pnpm

已经全部重新删除再安装,依然是这个错误,node.js pnpm都全部彻底删除干净重新安装了,所以很奇怪,我用pnpm安装其他项目的依赖也出现相同的问题,所以推测跟项目没有关系。pnpm从版本8到5都试了一边,唯独5的版本才可以,奇了怪。

已确认非模板问题

markthree 任务状态进行中 修改为已完成

登录 后才可以发表评论

状态
负责人
里程碑
Pull Requests
关联的 Pull Requests 被合并后可能会关闭此 issue
分支
开始日期   -   截止日期
-
置顶选项
优先级
参与者(2)
10249119 markthree 1640753343
TypeScript
1
https://gitee.com/dishait/tov-template.git
git@gitee.com:dishait/tov-template.git
dishait
tov-template
tov-template

搜索帮助