You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
报错信息: ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/packagename: Value of "this" must be of type URLSearchParams
这个问题的根本原因在于pnpm模块依赖的node-fetch库中,URLSearchParams.prototype[p].call()函数调用时,错误地把this上下文设置为了receiver(代理对象)而非target(原始对象)。将this上下文设置为receiver导致URLSearchParams的方法无法正确访问原始对象的属性和方法,进而抛出ERR_INVALID_THIS异常。官方链接:"ERR_INVALID_THIS" on "pnpm up" in Node 20
此时需要将 pnpm 版本 >= 8.3.1
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered:
Version
latest
Vue Version
latest
Link to minimal reproduction
Step to reproduce
执行
pnpm i
失败,应该是 pnpm 版本问题,目前 package.json 中 "packageManager": "pnpm@7.11.0" ,packageManager 属性需要 corepack 配合,当本地的 corepack 启用( 执行
corepack enable
)时,pnpm i
报错报错信息:
ERR_PNPM_META_FETCH_FAIL GET https://registry.npmjs.org/packagename: Value of "this" must be of type URLSearchParams
这个问题的根本原因在于pnpm模块依赖的node-fetch库中,URLSearchParams.prototype[p].call()函数调用时,错误地把this上下文设置为了receiver(代理对象)而非target(原始对象)。将this上下文设置为receiver导致URLSearchParams的方法无法正确访问原始对象的属性和方法,进而抛出ERR_INVALID_THIS异常。官方链接:"ERR_INVALID_THIS" on "pnpm up" in Node 20
此时需要将 pnpm 版本 >= 8.3.1
What is expected
No response
What is actually happening
No response
Any additional comments (optional)
No response
The text was updated successfully, but these errors were encountered: