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 set content type in HTTP server
- How to write file
- How to POST JSON data
- How to get format date in "yyyy-mm-dd"
- How to get current timestamp in seconds
- How to get difference between 2 dates in days
- How to export function
- How to convert unix timestamp to local date/time
- How to convert JSON to array
- How to pretty print JSON stringify
See more codes...