Using npm, how do you check if there is a newer version of some the project package?
Experience Level: Medior
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 JuniorUsing npm, how do you list installed modules?
npm JuniorUsing npm, how do you uninstall a package?
npm JuniorWhere can you find modules that the npm installed locally after you executed the npm install command?
npm JuniorWhat does npm init command do and when would you use it?
npm Junior