Conversation
package.json
Outdated
| "engines": { | ||
| "node": "^4.7.0", | ||
| "npm": "^5.0.0" | ||
| "node": ">=4.8.0", |
There was a problem hiding this comment.
I believe you should remove the engines section from this file. We specify the node version that Travis must use via .travis.yml, and Travis' built in version of yarn used to work fine as it was.
There was a problem hiding this comment.
See travis-ci/travis-ci#4653 (comment) for an explanation of why Travis ignores the versions of node and npm specified in package.json.
There was a problem hiding this comment.
No change, Travis still fails on Yarn
|
@danielrozenberg, looks like the error in your latest commit is due to And as luck would have it, @erwinmombay merged #9775 just after you had removed I encountered a similar version incompatibility in #10671, and at that time, I could get away with it. This time, I'd imagine you'd need to downgrade Dependencies are hard :( |
|
Update after discussion with the team: Let's move to node 6 on Travis. I'll follow up this PR with one that introduces a check to make sure |
|
@danielrozenberg FYI, I just tested your PR with node 6, and the yarn install was successful. |
|
Aren't we forcing everyone to update to node 6 then? If yarn can't build amphtml with node 4.8, then changing the .travis.yml isn't going to be enough |
|
Yes, everyone should upgrade to node 6. From yesterday's discussion, here's what needs to happen:
|
|
Done 1 & 2, PTAL |
rsimha
left a comment
There was a problem hiding this comment.
Thanks for the quick fix!
build-system/SERVING.md
Outdated
| - node 6+ | ||
| - gulp (installed globally) | ||
| - java 8 | ||
| - yarn 1.0.2+ (see https://yarnpkg.com/) |
There was a problem hiding this comment.
nit: Move this up the list, just below node, to reflect the order in which they are likely to be installed.
| # Checkout a tag | ||
| git checkout 123456789 | ||
| npm install | ||
| yarn |
There was a problem hiding this comment.
Does this need to be yarn install? Or is yarn sufficient if there's a yarn.lock?
There was a problem hiding this comment.
"yarn" == "yarn install", regardless of yarn.lock or not
| * In your local repository directory (e.g. `~/src/ampproject/amphtml`), install the packages that AMP uses by running | ||
| ``` | ||
| npm install | ||
| yarn |
There was a problem hiding this comment.
Same question here, re: yarn vs. yarn install.
… which these will be installed
|
fyi @dknecht we bumped node requirement to >6 and that |
Partially fixes #11303
Fixes #11278