InfoHeap
Tech
Navigation
  • Home
  • Tutorials
    • CSS tutorials & examples
    • CSS properties
    • Javascript cookbook
    • Linux/Unix Command Line
    • Mac
    • PHP
      • PHP functions online
      • PHP regex
    • WordPress
  • Online Tools
    • Text utilities
    • Online Lint Tools
search

Node.js tutorials

  • Install node.js on Ubuntu Linux
  • Install node.js on Mac
  • npm tutorial
  • Debug javascript using node and Chrome
  • Find source file location of a module
  • Find version of installed package
  • How to use pm2 to manage node.js application in production
  • NestJS Quick start tutorial on Mac
  • NextJS Quick start tutorial on Mac
  • Fix cannot find module error
 
  • Home
  • > Tutorials
  • > Web Development
  • > Node.js

node – how to find version of installed package

on Feb 12, 2016

To find the version of a node package one can use npm list (optionally -g for global). Another option is to use javascript code and print version using object.version.

node package version using npm

To print version of package react

$ npm list -g react
/usr/lib
└── react@0.14.7 

node package version using javascript

var React = require("react")
console.log("React version=" + React.version)
Env: node version v10.24.1

Suggested posts:

  1. bower – installation and quick start guide
  2. Python re search vs match
  3. How to resize image (including animated gif) using Image magick convert
  4. React.render vs ReactDOM.render – which one should be used?
  5. Mac – how to convert mp4 to webm
  6. How to prevent ssh session freezing due to timeout
  7. Mac brew – how to find latest available package without installing
  8. node – how to fix cannot find module error
Share this article: share on facebook share on linkedin tweet this submit to reddit
Posted in Tutorials | Tagged Node.js, Tutorials
  • Browse content
  • Article Topics
  • Article archives
  • Contact Us
Popular Topics: Android Development | AngularJS | Apache | AWS and EC2 | Bash shell scripting | Chrome developer tools | Company results | CSS | CSS cookbook | CSS properties | CSS Pseudo Classes | CSS selectors | CSS3 | CSS3 flexbox | Devops | Git | HTML | HTML5 | Java | Javascript | Javascript cookbook | Javascript DOM | jQuery | Kubernetes | Linux | Linux/Unix Command Line | Mac | Mac Command Line | Mysql | Networking | Node.js | Online Tools | PHP | PHP cookbook | PHP Regex | Python | Python array | Python cookbook | SEO | Site Performance | SSH | Ubuntu Linux | Web Development | Webmaster | Wordpress | Wordpress customization | Wordpress How To | Wordpress Mysql Queries | InfoHeap Money

Copyright © 2025 InfoHeap.

Powered by WordPress