【发布时间】:2021-01-29 10:27:24
【问题描述】:
我正在使用 vuejs cli 处理一个项目,当我在终端“npm run serve”中键入它时,它应该给我一个本地主机,让我在浏览器中查看我的工作,但我不断收到多个错误:
> root@0.1.0 serve E:\MILAD\VUE.JS\TRAINING & projects\log in CLI
> vue-cli-service serve
The system cannot find the path specified.
internal/modules/cjs/loader.js:834
throw err;
^
Error: Cannot find module 'E:\MILAD\VUE.JS\@vue\cli-service\bin\vue-cli-service.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:831:15)
at Function.Module._load (internal/modules/cjs/loader.js:687:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:60: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! root@0.1.0 serve: `vue-cli-service serve`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the root@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\Bannourah Gang\AppData\Roaming\npm-cache\_logs\2020-10-15T00_03_44_083Z-debug.log
还有一句话:这可能不是 npm 的问题。上面可能还有额外的日志输出。
我不知道那是什么意思,也不知道我为什么会出现。 提前致谢。
【问题讨论】:
-
我有同样的问题,错误来自服务器运行代码使用节点服务器或节点服务器.js 我使用了 nodemon 和像 nodemon run devStart 这样的函数名称
标签: javascript vue.js npm vue-cli