-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Now using nvm (Node Version Manager) on linux, install node locally (…
…no sudo) - update linux instructions for ubuntu 20.04: the old install method from node.js's github does not work anymore, using nvm (Node Version Manager) node.js install method now, which supports many node versions and allows to easily backwards use an old node version for testing or compatibility reasons. - install node locally (no sudo): now installing gtp2ogs locally in home folder (instead of global install). this provides a lot of advantages, including no need to use `sudo` anymore (since we can modify locally our gtp2ogs folder in ~/gtp2ogs-node/node_modules/gtp2ogs, and most importantly for developers we can use `git` to easily checkout between branches and test changes very easily note: did not update the last 2 part's screenshots due to a lack of time to set up another AI, as PhoenixGo is currently not yet supported in Ubuntu 20.04. Todo in the upcoming future. - greatly polished old linux instructions.
- Loading branch information
1 parent
3db7a85
commit 2b9bfd0
Showing
18 changed files
with
199 additions
and
211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,32 +25,24 @@ | |
- [3B5) Run gtp2ogs.js (beta)](/docs/3B5-windows-run-gtp2ogs-js-beta.md) | ||
- [3B6) Run gtp2ogs.js (official)](/docs/3B6-windows-run-gtp2ogs-js-beta.md) | ||
|
||
3A2) Install gtp2ogs.js with npm | ||
# 3A2) Install gtp2ogs.js with npm | ||
|
||
Run : | ||
We need to choose a folder where we install gtp2ogs, for example `~/gtp2ogs-node` | ||
|
||
``` | ||
sudo npm install -g gtp2ogs | ||
``` | ||
Then, go inside this folder with `cd gtp2ogs-node`. | ||
|
||
Result is something like this : | ||
Then in that folder, run: | ||
|
||
```Shell | ||
npm install gtp2ogs | ||
``` | ||
/usr/bin/gtp2ogs -> /usr/lib/node_modules/gtp2ogs/gtp2ogs.js | ||
+ [email protected] | ||
added 88 packages from 54 contributors in 5.734s | ||
``` | ||
|
||
The path that is highlighted **/usr/lib/node_modules/gtp2ogs/** will | ||
be important for later | ||
|
||
Note : in some situations npm is installed in | ||
/usr/local/lib/node_modules/gtp2ogs/gtp2ogs.js | ||
gtp2ogs will be installed in that example in `~/gtp2ogs-node/node_modules/gtp2ogs` | ||
|
||
 | ||
 | ||
 | ||
|
||
If that’s the case for you, replace /usr/lib/ to /usr/local/lib | ||
in all the steps you see below | ||
[credits for the nvm install instructions for ubuntu 20.04 to linuxconfig.org](https://linuxconfig.org/how-to-install-node-js-on-ubuntu-20-04-lts-focal-fossa) | ||
|
||
[Next page ->](/docs/3A3-linux-optional-upgrade-to-devel.md) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.