代码之家  ›  专栏  ›  技术社区  ›  Nicholas Murray

NPM-v未在package.json中显示版本

  •  0
  • Nicholas Murray  · 技术社区  · 6 年前

    我想跑步 npm audit npm audit fix

    "npm": "^6.4.1",

    但当我跑的时候 npm -v

    当我跑的时候 npm install npm@latest -g 它显示了npm@6.4.1

    当我跑的时候 净现值 在项目目录中显示5.6.0

    1 回复  |  直到 6 年前
        1
  •  0
  •   Nicholas Murray    6 年前

    安装最新版本的node可以解决 npm -v

    这是由于 npm 安装在 node

    enter image description here