Hello,
Are there any plans to ship Node.js on Linux4Tegra? If I install Node.js when customizing system.img, what should I care about?
Thank you.
Hello,
Are there any plans to ship Node.js on Linux4Tegra? If I install Node.js when customizing system.img, what should I care about?
Thank you.
This would normally be something the end user would add. It should be available as an ordinary Ubuntu package install. See βapt search nodejs
β. Probably the main package you want would be installed via:
sudo apt-get install nodejs
β¦or maybe multiple installs on the same command line. For example:
sudo apt-get install nodejs node-util nodejs-doc
Futher than what @linuxdev mentioned from apt that would be the easiest way, alternately for other versions you may try something like (check the version you want):
curl -sL https://raw.githubusercontent.com/nodesource/distributions/master/deb/setup_current.x | sudo -E bash -
# Check version
sudo apt search nodejs
...
nodejs/unknown 14.9.0-1nodesource1 arm64
Node.js event-based server-side javascript engine
...
# Install
sudo apt-get install -y nodejs
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following NEW packages will be installed:
nodejs
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 24,1 MB of archives.
After this operation, 118 MB of additional disk space will be used.
Get:1 https://deb.nodesource.com/node_14.x bionic/main arm64 nodejs arm64 14.9.0-1nodesource1 [24,1 MB]
Fetched 24,1 MB in 1min 36s (250 kB/s)
Selecting previously unselected package nodejs.
(Reading database ... 188217 files and directories currently installed.)
Preparing to unpack .../nodejs_14.9.0-1nodesource1_arm64.deb ...
Unpacking nodejs (14.9.0-1nodesource1) ...
Setting up nodejs (14.9.0-1nodesource1) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Note that it may require some prerequisite packages such as [EDIT: recent versions of the setup script would auto-install dependencies such as apt-transport-https and others.]apt-transport-https libxkbfile-dev libsecret-1-dev rpm libx11-dev fakeroot
(this was 2 years ago for nodejs 8.11.2β¦)
Hi,
there is no dependency a such. Just that Tegra based Ubuntu is an arm64 system an not x86.
I can install with these commands:
apt-get update
apt-get install node-gyp
apt-get install nodejs-dev
apt-get install libssl1.0-dev
apt-get install nodejs-dev
apt-get install node-gyp
sudo apt-get install nodejs npm
thanks
Bibek