Comments (7)
Apparently, only yarn accepts the v
in front of the semver. Both npm and pnpm refuse to accept that.
This works:
npx projen new awscdk-app-ts --package-manager yarn --cdk-version v2.128.0
And since it works, you end up with a .projenrc.ts
and package.json
including v2.128.0
.
from projen.
npx projen new awscdk-app-ts --package-manager pnpm --cdk-version v2.128.0
Works without problems for me. What version of node are you using?
I don't think projen does anything specifically that would make it prone to v8 FATAL ERRORS
.
from projen.
Restarted the WSL2 env and now the problem is gone. Still, I think we should sanitize the parameters and strip out the v
. It's not normal to have that showing up in your package.json
.
from projen.
NPM also works:
npx projen new awscdk-app-ts --package-manager npm --cdk-version v2.128.0
^v2.127.0
is a perfectly fine version constraint. You can check this here: https://semver.npmjs.com/
Or run npm show aws-cdk@^v2.127.0
which will also resolve correctly.
from projen.
Restarted the WSL2 env and now the problem is gone. Still, I think we should sanitize the parameters and strip out the
v
. It's not normal to have that showing up in yourpackage.json
.
It is only added because you have put it in the projen new
command and it is a perfectly valid semver version constraint that is (at least within the node ecosystem) accept by all major package managers. I'm not inclined to artificially restrict valid use cases.
Happy to update any documentation if we use it somewhere. I agree it's certainly a bit unusual.
from projen.
It is only added because you have put it in the
projen new
command and it is a perfectly valid semver version constraint that is (at least within the node ecosystem) accept by all major package managers. I'm not inclined to artificially restrict valid use cases.Happy to update any documentation if we use it somewhere. I agree it's certainly a bit unusual.
Yeah, I know it's a valid semver, but as you said, it's quite unusual to see that. Even if you are the one explicitly passing it as a parameter, I wouldn't expect to see it in the generated files.
from projen.
Closing this one as it was due to WSL. You're welcome to open a new issue the discuss the automatic stripping of v
and gather community input on it.
from projen.
Related Issues (20)
- Error when using `NodePackageManager.BUN` with `NodejsFunction` HOT 5
- Update actions due to node v16 deprecation notice: codecov/codecov-action HOT 1
- gitlab build workflow HOT 1
- Rerunning projen cannot proceed due to existing license. HOT 10
- integ tests on private cdk lib fail since two days - ideas how to debug welcome HOT 6
- NpmConfig uses package 'ini' which adds CRLF on Windows HOT 1
- packaging fails when cdk.out dir is significant in size HOT 9
- Export util modules HOT 9
- Unable to ignore lines for coverage in projen project HOT 1
- `npx projen new jsii --package-manager npm` fails due to peer dependency issue HOT 2
- Publish to CodeArtifact fails for Nuget packages HOT 2
- github issue template
- Publishing v0.81.11 to PyPI failed HOT 1
- Generated source code for LambdaFunction where `edgeLambda: true` is incorrect HOT 3
- Release tags wrong commit HOT 1
- !reference tag in gitlab job scripts will be rendered in quotes
- typeRoots is missing in TypescriptConfigOptions
- moduleDetection is missing in TypescriptConfigOptions
- Getting Started on home page is broken
- setfacl is not pre-installed on CodeBuild images HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from projen.