简体   繁体   中英

npm outdated command shows MISSING in current version

I have babelify in version 7.3.0 specified in devDependencies in my package.json file like below:

"devDependencies": {
  ...,
  "babelify": "7.3.0",
  ...
}

Everything is going fine and the dependency is downloaded from npm but when I've run npm outdated command I've got:

Package       Current  Wanted        Latest  Location
babelify      MISSING   7.3.0         7.3.0  project

What is going on here? Why MISSING? Did you have such situation?

Weird thing guys. After a while I noticed that I have a space after word babelify and the quotation mark. So I had:

"devDependencies": {
  ...,
  "babelify ": "7.3.0",
  ...
}

instead of:

"devDependencies": {
  ...,
  "babelify": "7.3.0",
  ...
}

When I removed the space everything is OK.

What is going on here? Why MISSING? Did you have such situation?

MISSING means that package is not installed.

Installing the package will solve the problem.

First you must install all the packages using npm install . Then npm outdated will display current installed version.

缺少的意思是,您没有在 node_module 中安装依赖项,而是在 package.json 中手动编写。

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM