Closed njdister closed 2 weeks ago
That sounds strange. What are you setting it to? What's the package.json
look like after the change? Do you have an .npmrc
file?
Agree on .npmrc
having a registry specified.
I will go one further and say it wasn't specified when you installed "latest" projen, and therefore is not pulling it from the private registry (cached, but otherwise would).
Agree on
.npmrc
having a registry specified.I will go one further and say it wasn't specified when you installed "latest" projen, and therefore is not pulling it from the private registry (cached, but otherwise would).
Wow, turns out this was absolutely the problem. Our construct repos were fine, but I had this in my local ~/.npmrc. 🤦
I'm trying to pin the version of projen in our
AwsCdkConstructLibrary
constructs. Once I addprojenVersion
to the construct configuration and runnpx projen
I get the following error:I don't understand why projen attempts to pull itself from our private registry only once its version is pinned. Are there any workarounds for this?