==== Node Version Manager ====
curl https://raw.githubusercontent.com/creationix/nvm/master/install.sh | bash
folgendes in ~/.profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source ~/.profile
focalfossa@SFN-Laptop2:~/programmierung/dxdy$ uname -a && node --version && npm -v && nvm --version
Linux SFN-Laptop2 5.4.0-104-generic #118-Ubuntu SMP Wed Mar 2 19:02:41 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
v16.13.2
8.1.2
0.35.0
----
focalfossa@SFN-Laptop2:~$ nvm install --lts
Installing latest LTS version.
v16.13.2 is already installed.
Now using node v16.13.2 (npm v8.1.2)
focalfossa@SFN-Laptop2:~$ node -v
v16.13.2
focalfossa@SFN-Laptop2:~$ nvm install node
v17.4.0 is already installed.
Now using node v17.4.0 (npm v8.3.1)
focalfossa@SFN-Laptop2:~$ nvm ls-remote
focalfossa@SFN-Laptop2:~/programmierung/dxdy$ ls
node_modules package.json package-lock.json
focalfossa@SFN-Laptop2:~/programmierung/dxdy$ du -sh node_modules/
93M node_modules/
https://techviewleo.com/how-to-install-nodejs-in-linux-mint/
Client-Installation:
npm i -s @dydxprotocol/v3-client
-----
stefano@Ireoluwa:~$
stefano@Ireoluwa:~$ mkdir ulawunDX
stefano@Ireoluwa:~$ cd ulawunDX/
stefano@Ireoluwa:~/ulawunDX$ npm i -s @dydxprotocol/v3-client
stefano@Ireoluwa:~/ulawunDX$ npm -v
8.1.2
stefano@Ireoluwa:~/ulawunDX$ npm i -s @dydxprotocol/v3-client
stefano@Ireoluwa:~/ulawunDX$
stefano@Ireoluwa:~/ulawunDX$
stefano@Ireoluwa:~/ulawunDX$ ls node_modules/
npm
stefano@Ireoluwa:~/ulawunDX$ du -sh node_modules/
16M node_modules/
stefano@Ireoluwa:~/ulawunDX$ ls
node_modules package.json package-lock.json
stefano@Ireoluwa:~/ulawunDX$
stefano@Ireoluwa:~/ulawunDX$ ls
node_modules package.json package-lock.json
stefano@Ireoluwa:~/ulawunDX$ npm -v && node -v
8.1.2
v16.13.2
stefano@Ireoluwa:~/ulawunDX$ nvm
Der Befehl 'nvm' wurde nicht gefunden
===== 2.Versuch über NVM linuxmint 20.3 =====
focalfossa@SFN-Laptop2:~$ nvm -v
Node Version Manager (v0.35.0)
Note: refers to any version-like string nvm understands. This includes:
- full or partial version numbers, starting with an optional "v" (0.10, v0.1.2, v1)
- default (built-in) aliases: node, stable, unstable, iojs, system
- custom aliases you define with `nvm alias foo`
Any options that produce colorized output should respect the `--no-colors` option.
Usage:
nvm --help Show this message
nvm --version Print out the installed version of nvm
nvm install [-s] Download and install a , [-s] from source. Uses .nvmrc if available
--reinstall-packages-from= When installing, reinstall packages installed in
--lts When installing, only select from LTS (long-term support) versions
--lts= When installing, only select from versions for a specific LTS line
--skip-default-packages When installing, skip the default-packages file if it exists
--latest-npm After installing, attempt to upgrade to the latest working npm on the given node version
--no-progress Disable the progress bar on any downloads
nvm uninstall Uninstall a version
nvm uninstall --lts Uninstall using automatic LTS (long-term support) alias `lts/*`, if available.
nvm uninstall --lts= Uninstall using automatic alias for provided LTS line, if available.
nvm use [--silent] Modify PATH to use . Uses .nvmrc if available
--lts Uses automatic LTS (long-term support) alias `lts/*`, if available.
--lts= Uses automatic alias for provided LTS line, if available.
nvm exec [--silent] [] Run on . Uses .nvmrc if available
--lts Uses automatic LTS (long-term support) alias `lts/*`, if available.
--lts= Uses automatic alias for provided LTS line, if available.
nvm run [--silent] [] Run `node` on with as arguments. Uses .nvmrc if available
--lts Uses automatic LTS (long-term support) alias `lts/*`, if available.
--lts= Uses automatic alias for provided LTS line, if available.
nvm current Display currently activated version of Node
nvm ls [] List installed versions, matching a given if provided
--no-colors Suppress colored output
--no-alias Suppress `nvm alias` output
nvm ls-remote [] List remote versions available for install, matching a given if provided
--lts When listing, only show LTS (long-term support) versions
--lts= When listing, only show versions for a specific LTS line
--no-colors Suppress colored output
nvm version Resolve the given description to a single local version
nvm version-remote Resolve the given description to a single remote version
--lts When listing, only select from LTS (long-term support) versions
--lts= When listing, only select from versions for a specific LTS line
nvm deactivate Undo effects of `nvm` on current shell
nvm alias [] Show all aliases beginning with
--no-colors Suppress colored output
nvm alias Set an alias named pointing to
nvm unalias Deletes the alias named
nvm install-latest-npm Attempt to upgrade to the latest working `npm` on the current node version
nvm reinstall-packages Reinstall global `npm` packages contained in to current version
nvm unload Unload `nvm` from shell
nvm which [current | ] Display path to installed node version. Uses .nvmrc if available
nvm cache dir Display path to the cache directory for nvm
nvm cache clear Empty cache directory for nvm
Example:
nvm install 8.0.0 Install a specific version number
nvm use 8.0 Use the latest available 8.0.x release
nvm run 6.10.3 app.js Run app.js using node 6.10.3
nvm exec 4.8.3 node app.js Run `node app.js` with the PATH pointing to node 4.8.3
nvm alias default 8.1.0 Set default node version on a shell
nvm alias default node Always default to the latest available node version on a shell
Note:
to remove, delete, or uninstall nvm - just remove the `$NVM_DIR` folder (usually `~/.nvm`)
focalfossa@SFN-Laptop2:~$ node -v && npm -v
v16.13.2
8.1.2
focalfossa@SFN-Laptop2:~$ mkdir 2.versuchDX
focalfossa@SFN-Laptop2:~$ cd 2.versuchDX/
focalfossa@SFN-Laptop2:~/2.versuchDX$ npm i -s @dydxprotocol/v3-client
npm notice
npm notice New minor version of npm available! 8.1.2 -> 8.5.1
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.5.1
npm notice Run npm install -g npm@8.5.1 to update!
npm notice
focalfossa@SFN-Laptop2:~/2.versuchDX$ du -sh .
95M .
focalfossa@SFN-Laptop2:~/2.versuchDX$
===== 3.Versuch ohne NVM Raspbian GNU/Linux 10 =====
uname -a
Linux blmpi 5.10.63-v7l+ #1496 SMP Wed Dec 1 15:58:56 GMT 2021 armv7l GNU/Linux
npm -v
5.8.0
node -v
v10.24.0
npm i -s @dydxprotocol/v3-client
...
+ @dydxprotocol/v3-client@1.6.4
added 417 packages from 348 contributors in 245.447s
pi@blmpi:~/programmieren/nodejs/udpTESTclient $ du -sh .
99M .
pi@blmpi:~/programmieren/nodejs/udpTESTclient $ ls
node_modules package-lock.json
----
===== 4.Versuch alle Befehle NVM Install deepin =====
Esther@notebook20-PC:~/programmierung$ uname -a
Linux notebook20-PC 5.11.1-amd64-desktop #1 SMP Mon Mar 1 17:09:41 CST 2021 x86_64 GNU/Linux
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.38.0/install.sh | bash
nano ~/.bash_profile
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh" # This loads nvm
source ~/.bash_profile
nvm ls-remote #** zeigt lange Liste verfügbarer Version**
nvm install --lts #** installiert neuste stable node**
Esther@notebook20-PC:~/programmierung$ node -v && npm -v && nvm -v
v16.14.0\\
8.3.1\\
0.38.0\\
mkdir dydx
cd dydx/
apt install build-essential
npm i -s @dydxprotocol/v3-client
root@notebook20-PC:/home/Esther/programmierung/dydx# du -sh node_modules/
92M node_modules/
root@notebook20-PC:/home/Esther/programmierung/dydx# ls -la
insgesamt 312
drwxr-xr-x 3 Esther Esther 4096 Mär 16 14:54 .
drwxr-xr-x 3 Esther Esther 4096 Mär 13 21:50 ..
drwxr-xr-x 305 Esther Esther 12288 Mär 16 14:54 node_modules
-rw-r--r-- 1 root root 68 Mär 16 14:54 package.json
-rw-r--r-- 1 root root 290828 Mär 16 14:54 package-lock.json
----
Neue Benutzer ud mit passwd ud angelegt (mit sudo) zum selber probieren aller obrigen Befehle esther ist kein sudo.
Befehl zur Installation des DYDX TypeScript Client:
npm i -s @dydxprotocol/v3-client
... Und was danach?