async-labs / builderbook

Open source web application to learn JS stack: React, Material-UI, Next.js, Node.js, Express.js, Mongoose, MongoDB database.
https://builderbook.org
MIT License
3.76k stars 893 forks source link

Begin-1 yarn install issue #502

Closed bala-veeravalli closed 1 year ago

bala-veeravalli commented 1 year ago
Microsoft Windows [Version 10.0.22621.521]
(c) Microsoft Corporation. All rights reserved.

C:\Users\vbmk0\Documents\Learn\builderbook\book\1-begin>yarn install
yarn install v1.22.5
[1/4] Resolving packages...
[2/4] Fetching packages...
error next@12.1.6: The engine "node" is incompatible with this module. Expected version ">=12.22.0". Got "12.16.1"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

C:\Users\vbmk0\Documents\Learn\builderbook\book\1-begin>node -v
v12.16.1

C:\Users\vbmk0\Documents\Learn\builderbook\book\1-begin>npm -v
6.13.4

C:\Users\vbmk0\Documents\Learn\builderbook\book\1-begin>

I tried to maintain the same versions mentioned in the doc, but facing this issue. Thanks

klyburke commented 1 year ago

@bala-veeravalli Thanks for noting. Today I will update the book instructions to use a later Node version.

I provided a solution in the other most recent issue. Please see my comment here: https://github.com/async-labs/builderbook/issues/499#issuecomment-1256394472


UPDATE: I just updated the book text to instruct installing Node version 12.22.0. That should fix this issue with running yarn in Chapters 1-8. In Chapter 9, we instruct you to upgrade to Node version 14.18.1 for deployment.