nodejsHow to check if Node.js is installed or not
node -vctrl + cnode -vreturns installed Node.js version or error ( |
Usage example
node -v
output
-bash: /usr/bin/node: No such file or directoryRelated
More of Nodejs
- How to get current timestamp in seconds
- How to export constant
- How to set environment variable
- How to send message to client from websocket server
- How to set content type in HTTP server
- How to send JSON response from HTTP server
- How to post url-encoded data
- How to run Node.js script in background
- How to get format date in "yyyy-mm-dd"
- How to read stream to string
See more codes...