nodejsHow to check if Node.js is installed or not
node -v
ctrl + c
node -v returns installed Node.js version or error ( |
Usage example
node -v
output
-bash: /usr/bin/node: No such file or directory
Related
More of Nodejs
- How to read stream to string
- How to POST JSON data
- How to set content type in HTTP server
- How to run Node.js script
- How to pipeline streams
- How to run Node.js script in background
- How to convert unix timestamp to local date/time
- How to get path dirname
- How to write file
- How to get current time
See more codes...