Remove trying to circumvent nvm

This commit is contained in:
Kallum Jones 2022-08-09 18:52:10 +01:00
parent 5aa9cca6c2
commit e4adeb78db
No known key found for this signature in database
GPG Key ID: D7F4589C4D7F81A9

View File

@ -39,7 +39,7 @@ info "Verifying node verison..."
NODE_VERSION_STR=$(node --version) NODE_VERSION_STR=$(node --version)
if [[ "$?" -eq 127 ]] if [[ "$?" -eq 127 ]]
then 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 exit
fi fi
@ -63,11 +63,6 @@ cd "$DOWNLOAD_DIR" || exit
npm install --save npm install --save
npm install -g @vercel/ncc npm install -g @vercel/ncc
npx tsc 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 ncc build build/ts/mod-manager.js -o build/flat
# Install # Install