Last updated 4 years ago
Was this helpful?
List global top level NodeJS packages: npm list -g --depth 0
npm list -g --depth 0
, aka, force a package to use a specific version of a dependency.
In your package.json file to rewrite the usage of left-pad in the d2 library you're importing:
"resolutions": { "d2/left-pad": "1.1.1", "**/left-pad": "^1.1.2" }
** act as a wildcard if you'd like to change more than one parent library.
**