Skip to content

Commit

Permalink
fix: update package lock
Browse files Browse the repository at this point in the history
  • Loading branch information
wessberg committed Jan 23, 2023
1 parent 5985980 commit 3915236
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions deploy.js
Original file line number Diff line number Diff line change
Expand Up @@ -170,12 +170,10 @@ if (needsNode || !hasAcceptableNodeVersion) {
: "Node.js is missing on the host machine. Installing"
);

if (!hasAcceptableNodeVersion) {
await ssh.execCommand(`sudo apt remove nodejs && sudo apt autoremove`);
}
await ssh.execCommand(`cd ~`);
await ssh.execCommand(`curl -sL https://deb.nodesource.com/setup_${PREFERRED_NODE_VERSION} -o nodesource_setup.sh`);
await ssh.execCommand(`sudo bash nodesource_setup.sh`);
await ssh.execCommand(`sudo apt --fix-broken install -y`);
await ssh.execCommand(`sudo apt install nodejs -y`);
await ssh.execCommand(`rm nodesource_setup.sh`);

Expand Down

0 comments on commit 3915236

Please sign in to comment.