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
{{ message }}
Repository navigation
Commit a68f5a8
Browse filesBrowse the repository at this point in the historyBrowse files
Tauri's resource_dir() canonicalizes internally, returning \?\-prefixed
verbatim paths on Windows. exists() accepts them, so resolution picks the
bundled npm CLI at \?\D:\…\npm-cli.js — but Node v22's CJS resolver
misreads the drive boundary in a verbatim path, walks past the filesystem
root, and crashes in resolveMainPath with EISDIR: lstat 'D:' before npm
even starts (nodejs/node#60435, upstream fix stalled). The user sees only
安装失败:npm 退出码 1 on a fresh bundled install.
simplify() strips the prefix (dunce-style, keeping \?\UNC\ intact) at
the source — every path handed to the bundled node is a plain Win32 path.
0 commit comments