-
Notifications
You must be signed in to change notification settings - Fork 351
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
yarn start not working #259
Comments
@hariaccubits I saw some errors in your |
The reason you are getting error I got the same error when using the node:gallium-alpine pre-built Docker image since it was using Yarn v1 (1.22.19), but the contents of the .yarn folder and .yarnrc.yml file in this repository requires Yarn v3 and was causing a conflict. I even got an error trying to use the versions used in this repository of Node.js LTS Gallium and Yarn 3.1.1, but when I upgraded to Yarn 3.3.0 it resolved the issue when running Use stable Node.js 16.x (i.e. Remove the .yarn directory,
Temporarily backup by renaming .yarnrc.yml since it has some extra lines of code at the top to retain and use later
Run the following to create a .yarn folder with latest Yarn v3.3.0 and re-create .yarnrc.yml with Yarn v3.3.0 (with contents
Copy remainder of .yarnrc.yml.old back into .yarnrc.yml, so the file became:
Then using Node.js with LTS Gallium, I simply followed these Yarn instructions to install its Corepack and the latest Yarn 3.3.0 and also installed Git first since it used that, then after doing that I was able to run Alpine Linux
Note: If you're using Ubuntu rather than Alpine Linux then you'd instead install git with There's also an inconsistency in the Node.js version used in the repo. The CircleCI .circleci/config.yml file is using Node.js 16.14, whereas the .nvmrc file is using Node.js 16.18 (Gallium) |
@ltfschoen - looks like a good stack exchange question and answer about how to use this template to me, and per #245 comment for a PR to update things here, I am sure a succinct a minimal update would be very welcome :) |
my initial post above is erroneous, please refer to this stackexchange post |
Thanks for chiming in here @ltfschoen! Just going through these issues and trying to sort them out. Am I good to close this? |
Maybe revert to using Yarn 1.x instead of Yarn 3.x or update the README with more precise steps on how to configure it to use Yarn 3.x so users don't encounter this issue and give up. |
@sbzi1020 when installing the dependencies, I have encountered several similar issues:
My Solution to issue: Node.js Version Requirement Unlike what is stated on substrate-tutorial : Because the tutorial also states: To resolve this, I upgraded Node.js to a compatible version. Here are the steps:
nvm install 18
nvm use 18 Verify the Node.js version: node -v Ensure it outputs
npm uninstall -g corepack
npm install -g corepack
corepack enable
corepack prepare yarn@3.0.0 --activate Missing Peer Dependencies
yarn add @babel/core@7.20.12 @babel/plugin-syntax-flow@7.18.6 @babel/plugin-transform-react-jsx@7.20.7 typescript@4.9.4 webpack@5.76.0 autoprefixer@10.4.13 postcss@8.4.18 --dev
yarn add semantic-ui-css@latest
After addressing the above issues, I successfully installed the project dependencies and start the project. yarn install My setup is as following : Node.js Version: OS: ProductName: macOS
ProductVersion: 14.5
BuildVersion: 23F79 System Information: Software:
System Software Overview:
System Version: macOS 14.5 (23F79)
Kernel Version: Darwin 23.5.0
Boot Volume: Macintosh HD Processor: Intel(R) Core(TM) i5 CPU @ 2.30GHz |
The text was updated successfully, but these errors were encountered: