npm err!缺少脚本:“服务” npm err!可以在Vuejs中找到此运行的完整日志

发布于 2025-02-09 17:15:14 字数 463 浏览 2 评论 0原文

你好,希望你一切都好!

设置项目安装vuejs后,我正在研究项目vuejs,还可以引导和运行npm run serve me显示此错误:

npm err!缺少脚本:“服务” npm err! npm err!要查看脚本列表,请运行: npm err! npm运行

npm err!可以在以下方式中找到此运行的完整日志 npm err! C:\ user \ user \ appdata \ local \ npm-cache_logs \ 2022-06-22T21_48_27_27_572Z-debug-0.log

任何想法如何解决?谢谢

Hello hope you are well!

I am working on project VUEJS after I setup the project install vuejs, also bootstrap and run npm run serve me display this error:

npm ERR! Missing script: "serve"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run

npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\User\AppData\Local\npm-cache_logs\2022-06-22T21_48_27_572Z-debug-0.log

Any idea How to solve it? Thanks
enter image description here

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

歌入人心 2025-02-16 17:15:14

为了运行package.json内定义的NPM脚本,您必须在字典中,package.json.json文件位于位置。您尝试从crud-app-frontend运行脚本,但是您的package.json实际上位于crud-app中。

您必须在那里导航,然后运行脚本。

$ cd crud-app
$ npm run serve

In order to run npm scripts that are defined inside of package.json you have to be in the dictionary, where the package.json file is located. You tried to run the script from crud-app-Frontend, but your package.json is actually located in crud-app.

You have to navigate there and then run the script.

$ cd crud-app
$ npm run serve
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文