-
Notifications
You must be signed in to change notification settings - Fork 459
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
cdktf init fails at npm install (NODE_ENV is not recognized) #198
Comments
Note: manually doing |
Same problem here |
This line I guess:
|
Thanks for reporting the bug. I'll check how to fix this for windows. Generally, #201 should be implemented to prevent similar platform dependent issues. |
Yes 👍 do you know how to achieve the same desired behavior on windows? |
Maybe best would be to use https://www.npmjs.com/package/cross-env execSync(`cross-env NODE_ENV=development npm install ${devDep} ${deps.join(' ')}`, { stdio: 'inherit' }); |
Next problem is yarn, which I don't have, is it mandatory or it should init without yarn? Error:
|
No, yarn isn't mandatory for normal usage. It's only required for contributions to this repo, since we are using yarn workspaces |
I'm a bit surprised the |
It's set to production, since the cli uses https://github.com/vadimdemedes/ink and that's the recommended setting to suppress internal error messages. |
I'm not sure I'm following, the code that causes the error is executing Edit: just to be clear, it looks like it's simply doing a |
Could you give |
We do set it to |
Just tested now, it works. |
Released in 0.0.12 |
Awesome tool here! Nice touch on the auto-generated Changing {
"scripts": {
...
"build": "npm run get && tsc"
...
}
} Resolved the issue for me. I don't have
To generate your |
I'm going to lock this issue because it has been closed for 30 days. This helps our maintainers find and focus on the active issues. If you've found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further. |
Community Note
cdktf & Language Versions
0.0.11 and the
typescript
templateDebug Output
Figure it's short enough to be here (just few lines):
Expected Behavior
No error when doing an init
Actual Behavior
Init fails at the npm install step
Steps to Reproduce
Important Factoids
Running on Windows 10, Node 12.16.0
The text was updated successfully, but these errors were encountered: