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
Remove the engines property from package.json #252
Comments
@westtrade Milligram was upgraded to the LTS version of Node.js, as it is a highly recommended practice to keep all dependencies current. Please, can you explain with details why Milligram needs the Node.js v11? |
Just stumbled upon this issue myself. Currently on node 14, the bleeding edge, and using svelte, which is also on the bleeding edge. As a user, it's a bit odd to have a css-only framework tell me which engine of node I'm supposed to be on. I assume this engine flag is more useful for the developers of An easy work-around for this issue in yarn is |
@davidroeca Yes. The Node.js version is defined because it is required for the development environment of the Milligram. Besides, it is a highly recommended practice to keep all dependencies current. In this case, Milligram uses the LTS version (v12) of the Node.js. So, let me better understand what's going on and maybe we can help improve it. |
@cjpatoilo I agree that it's best to keep packages current. I'm actually more current than v12. My issue is slightly different than @westtrade's issue because mine can be solved by switching the engine caret requirement to "engines": {
- "node": "^12.17.0",
+ "node": ">=12.17.0",
"npm": "^6.14.5"
}, A similar discussion has taken place in the bootstrap repo. They opted to remove the engines field entirely, because these specific engines are only necessary to create the From a development standpoint in this repo, does a note in the README specifying the supported node version + a CI environment with a pinned node version suffice in this regard? |
@westtrade @davidroeca for now, I will remove |
@davidroeca @westtrade please, can you tell me what happens when you install Milligram? I know that we have 2 great examples, and as I understand, the first example uses a version before LTS and the second example uses a version after LTS, and both examples are affected. First, I would like to know if the same behavior happens when using Yarn and Npm. Besides, the same behavior happens when you use or install Milligram v1.4.0 and v1.3.0 (last versions)? |
With npm, I get the following warnings:
With yarn, it's an error:
Going down to
With yarn:
|
With
|
In my case, it simply does not install, and NPM throws an error that I wrote in the title. Your framework is wonderful - but it’s strange that the style framework requires a server interpreter version. Wouldn't browser styles work without a server interpreter? |
@davidroeca @westtrade thank you for explaining to me. For now, I will close this issue and merge PR #253. |
Does the node version really matter?
The text was updated successfully, but these errors were encountered: