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 write file
- How to set content type in HTTP server
- How to read stream to Buffer
- How to make GET request
- How to post url-encoded data
- How to install latest Node.js version on Ubuntu
- How to init Node.js project with NPM
- How to get UTC timestamp
- How to get format date in "yyyy-mm-dd"
- How to run Node.js script in background
See more codes...