From e4adeb78db19e67f36a86b3ebb6f24dee6f321ad Mon Sep 17 00:00:00 2001 From: Kallum Jones Date: Tue, 9 Aug 2022 18:52:10 +0100 Subject: [PATCH] Remove trying to circumvent nvm --- install.sh | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/install.sh b/install.sh index f4df77f..b3a60e3 100644 --- a/install.sh +++ b/install.sh @@ -39,7 +39,7 @@ info "Verifying node verison..." NODE_VERSION_STR=$(node --version) if [[ "$?" -eq 127 ]] then - error "Node either is not installed, or is not on the root path.\n If you installed Node using NVM, see this link, ensuring links are made for node, npm and npx: https://stackoverflow.com/questions/21215059/cant-use-nvm-from-root-or-sudo" + error "Node does not appear to be installed. Please install Node version $MIN_NODE_VERSION or higher" exit fi @@ -63,11 +63,6 @@ cd "$DOWNLOAD_DIR" || exit npm install --save npm install -g @vercel/ncc npx tsc - -if [[ ! -v $NVM_DIR ]] -then - ln -s "$NVM_DIR/versions/node/$NODE_VERSION_STR/bin/ncc" "/usr/local/bin/ncc" -fi ncc build build/ts/mod-manager.js -o build/flat # Install