如何解决'无法找到模块vue-cli-service.js'?

问题描述 投票:3回答:1

我正在建立一个新的Vue项目,当我在CMD中运行命令npm run serve时,出现以下错误:

Error: Cannot find module 'C:\Users\Bram Wicherink\@vue\cli-service\bin\vue-cli-service.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Function.Module.runMain (internal/modules/cjs/loader.js:831:12)
    at startup (internal/bootstrap/node.js:283:19)
    at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] serve: 'vue-cli-service serve'
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] serve script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Bram Wicherink\AppData\Roaming\npm-cache\_logs\2019-09-13T14_03_01_676Z-debug.log

我该怎么办?

我已经阅读了日志,我卸载并重新安装了NPM,Vue,Node.js,并在Google上阅读了一些背景信息,但没有任何效果。

vue.js npm install
1个回答
© www.soinside.com 2019 - 2024. All rights reserved.