'Installing Nodejs packages from private repo sets version in package.json to"npm:@my-repo/my-package@^1.0.0"
Package.json post-install:
"dependencies": {
"@my-repo/my-package": "npm:@my-repo/my-package@^1.0.0"
}
It is also set this way in package-lock.json
It isn't a problem on my local machine. But Google's cloud build does not like it and throws an error saying it can't find the package version. Changing the version to "^1.0.0" in package.json and package-lock.json solves the problem but it would be nice to avoid this in the first place.
Desired behavior post install:
"dependencies": {
"@my-repo/my-package": "^1.0.0"
}
My package is published to a private repo on github.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
