vue.js - 无法在 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 应用程序中仍然出现此错误?任何人都可以帮忙吗?先感谢您。
解决方案
在我看来,&
目录名称14.Animations&Transitions
中有问题。
推荐阅读
- javascript - chrome 扩展中的 range.surroundContents 禁用右键单击
- python - 我在 python3 中使用 kivy 构建应用程序运行良好,但在 linux 中出现以下错误
- python - PyTorch GPU 中的并行 Cholesky 分解
- java - Hadoop MapReduce 错误不同的数据类型
- jenkins - 当单元测试用例失败时,Jenkins 构建失败
- sql-server - 在 SQL Server 中编写“like 运算符”的更好方法
- html - 不安装语言包如何显示汉字?
- react-native - 如何在 React Native 中使用配置变量
- jsp - selectonemenu 中的 AJAX 不会在每次更新时调用目标
- amazon-web-services - 自动提取 S3 中的 .gz 文件