The npm update command seems to be disregard the information provided by npm outdated

After running npm outdated on my project, I discovered that there were multiple outdated packages. Subsequently, I executed npm update, which successfully updated some of the packages but not all. Even after running npm outdated again, the remaining outdated packages were still listed:


Package                       Current        Wanted  Latest
babel-loader                    7.1.1         7.1.1   7.1.2
babel-runtime                  6.23.0        6.23.0  6.26.0
chalk                           2.0.1         2.0.1   2.1.0
css-loader                     0.28.4        0.28.4  0.28.5
eslint                          4.2.0         4.2.0   4.5.0
eslint-plugin-react             7.1.0         7.1.0   7.2.1
fs-extra                        4.0.0         4.0.0   4.0.1
html-webpack-plugin            2.29.0        2.29.0  2.30.1
material-ui              1.0.0-beta.5  1.0.0-beta.5  0.19.0
postcss-flexbugs-fixes          3.0.0         3.0.0   3.2.0
react-stripe-elements           0.0.2         0.0.2   0.0.7
webpack                         3.3.0         3.3.0   3.5.5
webpack-dev-server              2.5.1         2.5.1   2.7.1
webpack-manifest-plugin         1.1.2         1.1.2   1.3.1

Despite attempting to run npm update once more, it appeared to have no effect!

How come these two commands are showing conflicting information?

Appreciate any assistance provided.

Answer №1

Executing the command npm update will not update packages in your package.json that have specific versions pinned. This is why the npm outdated command displays three columns: the currently installed version, the latest version matching what is specified in package.json, and the absolute latest version available.

Similar questions

If you have not found the answer to your question or you are interested in this topic, then look at other similar questions below or use the search

The file "tfjs_binding.node" could not be located in the directory where @tensorflow is installed

After attempting to utilize certain functionalities of TensorFlow, I encountered an error indicating that "tfjs_binding.node" was not found in the @tensorflow installation folder. I made sure to install Python 2.7 as a prerequisite for TensorFlow and veri ...

Issue arises when attempting to run npm start on Windows 10 due to node-gyp failing

After setting up Node.js version 12.18.1 and Python v3.8.1 on my Windows 10 system, I encountered an issue when trying to run npm install in a project: gyp ERR! configure error gyp ERR! stack Error: Command failed: C:\Program Files (x86)\Python&b ...

What serves as the pip counterpart to package.json?

While I am familiar with the requirements.txt file, it only lists dependencies. However, I'm interested in other metadata such as package name, author, and main function. Is there a standard format for this information? I've heard of the setup.p ...

Having trouble installing an npm package with your Python script?

Here is the Python code I am struggling with: import subprocess subprocess.Popen(["npm", "install", "express"], shell=True, stdout=subprocess.PIPE, stderr=subprocess.STDOUT) Unfortunately, this code isn't working as exp ...

I am encountering the issue where Prisma client python consistently notifies me that my client has not been generated, despite the fact that I have already executed the necessary

After setting up Prisma Client Python and SQLite to create a database for my program successfully, I encountered an issue when trying to run my program. Despite ensuring that everything was installed correctly and running commands like "prisma generate" an ...

Tips for installing npm packages using a python script in the same directory as my script

The desired file structure should resemble this: test.py node_modules (Folder containing installed npm modules) Here is the attempted solution: import subprocess import os dir_path = os.path.dirname(os.path.realpath(__file__)) # Retrieve the directory ...

Using a separate iteration of Python while conducting an NPM installation

I have admin privileges on a VPS running CentOS 5.9 with Python 2.4.3 installed by default. I decided to upgrade to Python 2.7.3 using the commands below (I opted for make altinstall instead of make install): wget http://www.python.org/ftp/python/2.7.3/Py ...

An error of 'Address already being used' encountered while utilizing cookiecutter-flask

My operating system is OS X 10.14.3 and I am attempting to utilize the impressive cookiecutter-flask project. I have diligently followed the instructions provided in the README.rst: cookiecutter https://github.com/sloria/cookiecutter-flask.git # My test p ...

An error occurred: gyp ERR! stack - The command `python -c import sys; print "%s.%s.%s" % sys.version_info[:3]` has failed

While attempting to npm install in a Vue project, I encountered an error even after running vue create (name): npm ERR! gyp verb check python checking for Python executable "c:\Python310\python.exe" in the PATH npm ERR! gyp verb `which` ...

The multi-phase Docker build process fails to transfer files generated in the preceding stage

I am facing an issue with my Django app's Docker build, which consists of two stages: The first stage uses a Node image to compile static assets using Gulp. This stage creates the node_modules directory and a folder named build. The second stage is s ...

A guide on executing Python scripts and using CMD within a Dockerfile to manage a Docker container

In my current scenario, I have an image that is using a customized Dockerfile. Upon starting the container, I am aiming to execute CMD ["npm", "start"]. However, prior to that command execution, there are three different scripts that need to run. I attemp ...