【发布时间】:2019-06-04 13:12:38
【问题描述】:
我对@987654321@ 很陌生,我直接从vue 开始。
我以前有旧版本的 NPM,现在在我做一个 vue 项目时,我将 npm 升级到了6.5.0-next.0。
现在,当我尝试使用 npm run build 构建我的 vue 项目时,我收到一条错误消息:
> 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.
它说should be >= 3.0.0 不是 6.5 已经大于 3.0
【问题讨论】:
-
-next.0指定预发布版本。将 npm 更新到稳定的 6.5.0。这应该可以解决问题