-
Notifications
You must be signed in to change notification settings - Fork 58
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
Connectivity GUI App: Please include minimum or recommended nodejs and yarn version #92
Comments
The SDK doesn't use Node.js. That's for the connectivity graphical app. We need to add that to the app README. Can you send a PR to update the README? /cc @daniellacosse |
@amircybersec does nvm work on ubuntu? |
@daniellacosse I did some research on this and here's my findings: Installing nvmYes, nvm works on Ubuntu. I did not have it installed initially but I also believe that is the way to go (at least on Ubuntu LTS / Jammy Jellyfish). nvm installation instructions are provided here, but basically it is just one line:
The above bash script also automatically updates
After installing
We can verify that node has been indeed installed by nvm (under
Installing YarnThe preferred way to manage Yarn is by-project and through Corepack, a tool shipped by default with Node.js. Modern releases of Yarn aren't meant to be installed globally, or from npm (i.e.
To install yarn in project directory, I did the following steps:
|
Also seems like I am using Yarn 2 (Yarn Modern, Yarn Berry) which is more recent that Yarn Classic but it has some nuances.... |
I've had difficulty with corepack on mac, but I'm glad to see it works for you. The usage of Yarn Berry is intentional! Do you think you could add your instructions to the README and I'll review? |
I am new to all this and I just wanted to document what ended up working on my machine. It has been a bit confusing to navigate the yarn stuff. Also, on my machine I have to do 'yarn install' every time I switch branch. Yarn has this thing called https://yarnpkg.com/features/caching#zero-installs I am still working out through some of the details but will definitely do a PR to README docs once I get more clarity on best install strategy. |
Yeah you get in the habit of just running |
I got my mac a few days ago and managed to get the app built for iOS. Along the way, I ran into some minor setup issues and fixes that I wanted to share here. I will do a PR for this issue to reflect the necessary code tweaks and readme update. Yarn versionsYarn 3.6.1 does not seem to work well for me and I get the following error message. I can't fully understand the root cause.
Changing the version to Yarn 3.6.4 seems to address this issue and I don't get the same error with that version. I have tested this version on Ubuntu LTS and it worked well for me. Yarn 4I also tested yarn 4.0.1 and I got the following error:
It seems like that in yarn 4, Solution:Adding
Yarn workspacesTo get things working with Yarn 3.4.6, I had to install yarn workspaces plugin manually but seems like this step is not longer required in Yarn v4 as it is included by default: Fix (only yarn versions < 4)
ViteTo get Fix:
Xcode hiccupsSince this was the first time I was setting up xcode on my machine, I had some minor hiccups along the way. I thought it could be helpful to have a note of them: When building iOS app, I got the following error:
Reason explaind here: nodejs/node-gyp#569 (comment) Fix:Run Sandbox error:Sandbox: bash(40813) deny(1) file-read-data /Users/amir/Documents/Outline/outline-sdk/x/examples/outline-connectivity-app/app_mobile/ios/App/Pods/Target Support Files/Pods-App/Pods-App-frameworks.sh Fix:Check that |
I think we can alleviate most of the things you ran into by upgrading to yarn 4, updating the CLI calls and install esbuild explicitly. I think that setting you found can be committed as well (the one that turns off script sandboxing). Feel free to make a PR and add me as reviewer! Xcode is just generally kind of annoying to work with, thanks for documenting the xcode-select issue. |
I am running Ubuntu (
uname -a Linux 17Z990-R-AAS7U1 6.2.0-34-generic #34~22.04.1-Ubuntu SMP PREEMPT_DYNAMIC Thu Sep 7 13:12:03 UTC 2 x86_64 x86_64 x86_64 GNU/Linux
) and managed to get the following working to run the Android Connectivity Mobile App:I had to fiddle with it to get it working. The main contributing factor is that Nodejs version on Ubuntu default repos are outdated and node needs to be re-installed with the new way! Anyways, I thought it might be helpful to have a record of successful installation, and perhaps provide recommendations for minimum version numbers.
The text was updated successfully, but these errors were encountered: