npm 正确版本的混淆信息

Cia*_*arz 3 node.js npm vue.js

我很新npm,我马上就开始了vue

我以前有旧版本的 NPM,现在当我在做一个 vue 项目时,我将 npm 升级到6.5.0-next.0.

现在,当我尝试使用构建我的 vue 项目时,npm run build我收到一条错误消息:

> node build/build.js


To use this template, you must update following to modules:

  npm: 6.5.0-next.0 should be >= 3.0.0

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! clinic@1.0.0 build: `node build/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the clinic@1.0.0 build script.
Run Code Online (Sandbox Code Playgroud)

它说should be >= 3.0.0不是 6.5 已经大于3.0

аle*_*kyі 5

只需安装 npm 最新稳定版本

npm i -g npm@latest

或者

sudo npm i -g npm@latest