首页 > 解决方案 > 无法在 vue js 中打开 localhost?

问题描述

最近我无法打开我的任何 vue 应用程序。我尝试安装所有依赖项,npm install当我运行时npm run serve,我收到以下错误:

    > vue-first-app@0.1.0 serve D:\Software Development\Front-end\1-Vue\14.Animations&Transitions\routingeg
> vue-cli-service serve

'Transitions\routingeg\node_modules\.bin\' is not recognized as an internal or external command,
operable program or batch file.
internal/modules/cjs/loader.js:968
  throw err;
  ^

Error: Cannot find module 'D:\Software Development\Front-end\1-Vue\@vue\cli-service\bin\vue-cli-service.js'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:965:15)
    at Function.Module._load (internal/modules/cjs/loader.js:841:27)
    at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:71:12)
    at internal/main/run_main_module.js:17:47 {
  code: 'MODULE_NOT_FOUND',
  requireStack: []
}
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! vue-first-app@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the vue-first-app@0.1.0 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\basirpayenda\AppData\Roaming\npm-cache\_logs\2021-02-26T12_03_43_305Z-debug.log

这个错误对我理解错误并没有真正的帮助,我尝试重新安装 vue 和 vue cli,但我的所有 vue 应用程序中仍然出现此错误?任何人都可以帮忙吗?先感谢您。

标签: vue.js

解决方案


在我看来,&目录名称14.Animations&Transitions中有问题。


推荐阅读