NodeJS
List global top level NodeJS packages:
npm list -g --depth 0
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.Last modified 2yr ago