diff options
| author | Olcan <[email protected]> | 2025-05-30 01:12:36 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2025-05-30 01:12:36 -0700 |
| commit | 094b9dc474fd8b99813acfa53e1192058314e9e4 (patch) | |
| tree | 2a0a720733e91322d6fc7cf9f34c1db91a4d9fcd /scripts/setup-dev.sh | |
| parent | 8935a248f67d70c1f3892e7eb05aee38c8a11a4c (diff) | |
use npx json instead of jq (#617)
Diffstat (limited to 'scripts/setup-dev.sh')
| -rwxr-xr-x | scripts/setup-dev.sh | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/scripts/setup-dev.sh b/scripts/setup-dev.sh index f8d0bf13..de2ae336 100755 --- a/scripts/setup-dev.sh +++ b/scripts/setup-dev.sh @@ -16,8 +16,7 @@ set -euo pipefail # Check if npm is installed -if ! command -v npm &> /dev/null -then +if ! command -v npm &>/dev/null; then echo "npm not found. Installing npm via nvm..." # Download and install nvm: curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.40.3/install.sh | bash @@ -26,19 +25,10 @@ then # Download and install Node.js: nvm install 22 # Verify the Node.js version: - node -v # Should print "v22.15.0". + node -v # Should print "v22.15.0". nvm current # Should print "v22.15.0". # Verify npm version: npm -v # Should print "10.9.2". fi -# Check if jq is installed -if ! command -v jq &> /dev/null -then - echo "jq not found. Installing jq..." - # This assumes a Debian/Ubuntu based system. Adjust for other distributions. - sudo apt-get update - sudo apt-get install -y jq -fi - echo "Development environment setup complete." |
