Using npm, how do you check if there is a newer version of some the project package?
Experience Level:
Mid-level
Tags:
npm
Answer
To check if some of your packages is outdated, open a command-line, go to your project folder that contains a file package.json and run the following command:
npm outdated
Related npm job interview questions
-
What does npm audit fix command do and when would you use it?
npm Junior -
Using npm, how do you list installed modules?
npm Junior -
Using npm, how do you uninstall a package?
npm Junior -
Where can you find modules that the npm installed locally after you executed the npm install command?
npm Junior -
What does npm init command do and when would you use it?
npm Junior