Skip to content
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

Update nodejs version on readme instructions #71

Merged
merged 12 commits into from
Mar 3, 2024

Conversation

oliveiraleo
Copy link
Contributor

Hello,

When building webconsole from scratch using nodejs packed by Ubuntu's official package repositories, I ran into the same issue as the one described here: #25

When trying to follow the instructions on the README file, I received a deprecation warning from nodejs script. Then, according to this document here, the currently supported versions of nodejs are 18, 19 and 20. From the information of this other issue here on the free5gc main repo by me, I chose to install version 18.x and then webconsole built successfully.

This PR will update the instructions on the readme file on this repo too

PS: ASAP I'll update the instructions on the free5gc guide so we have the most up to date information in both places

TIA

readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
readme.md Outdated Show resolved Hide resolved
readme.md Show resolved Hide resolved
As suggested by @andy89923 in free5gc#71 (comment) corepack needs to be called to setup yarn
Later, yarn is used to build the webconsole module
Following the discussion on free5gc#71 and according to the comment free5gc#71 (comment) as yarn will be setup by corepack, there's no need to install it manually anymore
Copy link
Collaborator

@andy89923 andy89923 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

It's necessary to give permission for corepack to install/edit binary files on system /usr/bin folder
@oliveiraleo
Copy link
Contributor Author

While testing free5gc, I found that root permission is necessary in order to allow corepack to correctly setup its environment on /usr/bin folder. And since the mentioned folder is writable by root only, then the permission becomes a requirement (first screenshot attached below).

image

To fix this behavior, it's only a matter of appending sudo to the command so corepack can escalate privileges (see fbfe3f5 and the screenshot below).

image

Regards, Leo.

oliveiraleo added a commit to oliveiraleo/free5gc that referenced this pull request Feb 29, 2024
According to what was discussed on this PR free5gc/webconsole#71 on webconsole repo, corepack requires permission to correctly setup its files
@tim-ywliu tim-ywliu merged commit 2355552 into free5gc:main Mar 3, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants