Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Path does not end with the package name (#8560)
fix #8558 The @isaacs/cliui package depends on string-width-cjs@4.2.3, but the package that's actually downloaded is string-width@4.2.3. The name in the path doesn't match the original name, which is causing an error. Fix solution: Truncate based on scope depth, not by name. ``` "string-width-cjs": { "from": "string-width", "version": "4.2.3", "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", "description": "Get the visual width of a string - the number of columns required to display it", "license": "MIT", "author": { "name": "Sindre Sorhus", "email": "sindresorhus@gmail.com", "url": "sindresorhus.com" }, "homepage": "https://github.com/sindresorhus/string-width#readme", "repository": "git+https://github.com/sindresorhus/string-width.git", "path": "/Users/beyondkmp/Code/deepFocus/node_modules/.pnpm/string-width@4.2.3/node_modules/string-width", } ``` --------- Co-authored-by: beyondkmp <beyondkmkp@gmail.com>
- Loading branch information