Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

find npm version

npm --version
Comment

check npm version

npm -v
Comment

npm version

// Any of the below command will work.

npm -v
npm --v
npm -version
npm --version
Comment

check latest version of npm package

npm show {pkg} version
Comment

npm get version

npm view <package> version
Comment

check latest version of npm package

 command syntext
 npm view your-packageName version
 or 
 npm list your-packageName
 or get all installed package
 npm list
 
 
 or find latest version
 npm show your-packageName version

 
 example
 npm view firebase version 
 Above command will return the firebase version installed in my node project

 To find any npm package version which is installed in your app you can find from package.json file 
 or you can command.
Comment

How do I check npm version?

npm view npm versions --json

find any package version list

syntax
npm view package-name versions --json
Comment

How to find the version of an installed npm package?

Open your terminal and type npm -v will return your installed npm version.
Comment

PREVIOUS NEXT
Code Example
Shell :: gcc on ubuntu 20.04 
Shell :: linux command create folder if not exist 
Shell :: install specific node version linux 
Shell :: bash add new line to crontab 
Shell :: undo git add before commit 
Shell :: install oh my zsh M1 
Shell :: install php 8 debian 
Shell :: compare local branch with remote branch 
Shell :: unix count files in directory with specific name 
Shell :: edit grub file 
Shell :: git add submodule branch 
Shell :: ssh keygen 
Shell :: auto generate requirements.txt python 
Shell :: echo with color from bash 
Shell :: nodemon script 
Shell :: github actions configure aws credentials 
Shell :: unzip to directory 
Shell :: how to switch php versions 
Shell :: install google chrome on ubuntu 
Shell :: You are using a 64-bit WINEPREFIX. Note that many verbs only install 32-bit versions of packages. If you encounter problems, please retest in a clean 32-bit WINEPREFIX 
Shell :: git always commit with gpg 
Shell :: The current branch master has no upstream branch. 
Shell :: IF NOT DIR BASH 
Shell :: how to add .env to gitignore 
Shell :: how to end localhost 
Shell :: kill screen sessions 
Shell :: install pgcli linux 
Shell :: permission denied /dev/kvm 
Shell :: To stop all running docker containers 
Shell :: how to install kind in ubuntu 
ADD CONTENT
Topic
Content
Source link
Name
8+2 =