-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
featureuse for describing a new feature to developuse for describing a new feature to developsolveduse to identify issue that has been solved (must be linked to the solving PR)use to identify issue that has been solved (must be linked to the solving PR)
Milestone
Description
Description
The documentation "Development environment installation" recommends the installation of a recent version of nodejs but the version installed if we follow the instructions is old.
Environment
- OS (where OpenCTI server runs): Ubuntu 18.04.3 LTS
- Doc: https://opencti-platform.github.io/docs/development/installation
Reproducible Steps
Steps to create the smallest reproducible scenario:
- Install fresh Ubuntu 18.04
sudo apt install nodejs
Expected Output
Node.JS version >= 12.* < 13.0.0 installed
Actual Output
$ apt show nodejs 2>/dev/null |head -n 2
Package: nodejs
Version: 8.10.0~dfsg-2ubuntu0.4
Fix
VERSION=node_12.x
DISTRO="$(lsb_release -s -c)"
curl -sSL https://deb.nodesource.com/gpgkey/nodesource.gpg.key | sudo apt-key add -
echo "deb https://deb.nodesource.com/$VERSION $DISTRO main" | sudo tee /etc/apt/sources.list.d/nodesource.list
sudo curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
sudo echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
sudo apt update && sudo apt install -y nodejs yarn python3 python3-pip
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
featureuse for describing a new feature to developuse for describing a new feature to developsolveduse to identify issue that has been solved (must be linked to the solving PR)use to identify issue that has been solved (must be linked to the solving PR)