Register
Login
Resources
Docs Blog Datasets Glossary Case Studies Tutorials & Webinars
Product
Data Engine LLMs Platform Enterprise
Pricing Explore
Connect to our Discord channel

check-for-node 351 B

You have to be logged in to leave a comment. Sign In
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
  1. #!/usr/bin/env bash
  2. # [start-readme]
  3. #
  4. # This script is run automatically when you run the server locally. It checks whether Node.js is installed.
  5. #
  6. # [end-readme]
  7. if which node 2>/dev/null; then
  8. echo "✔ Node.js is installed."
  9. else
  10. echo "✘ Node.js is not installed"
  11. echo "Visit nodejs.org to download the latest LTS installer"
  12. exit 1
  13. fi
Tip!

Press p or to see the previous file or, n or to see the next file

Comments

Loading...