mobile CCTV,mobile surveillance,police body worn cameras

标题: web服务例子编译失败 [打印本页]

author: stronghill    time: 2020-4-21 15:36
标题: web服务例子编译失败
我从https://codeload.github.com/besovideo/webclientd/zip/master下载了源码,按照下面的说明,运行npm install 报错

author: stronghill    time: 2020-4-21 15:37
D:\work\webclientd-master>npm install
npm WARN The package @xunlei/vue-context-menu is included as both a dev and prod
uction dependency.
npm WARN The package css-loader is included as both a dev and production depende
ncy.
npm WARN The package less-loader is included as both a dev and production depend
ency.
npm WARN The package vue-loader is included as both a dev and production depende
ncy.
npm WARN The package vue-template-compiler is included as both a dev and product
ion dependency.

audited 26249 packages in 15.08s

40 packages are looking for funding
  run `npm fund` for details

found 0 vulnerabilities


D:\work\webclientd-master>
author: stronghill    time: 2020-4-21 15:48
ERROR  Failed to compile with 1 errors


This dependency was not found:

* rightMenu in ./src/main.js

To install it, you can run: npm install --save rightMenu
author: xurui    time: 2020-4-21 16:07
安装一下这个依赖包,重试一下
npm install --save rightMenu
author: xurui    time: 2020-4-21 16:20
xurui post on2020-4-21 16:07
安装一下这个依赖包,重试一下
npm install --save rightMenu

也可以删除掉node_modules文件夹,重新安装一下
author: stronghill    time: 2020-4-21 16:22

D:\work\webclientd-master>npm install --save rightMenu
npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/rightMenu - Not found
npm ERR! 404
npm ERR! 404  'rightMenu@latest' is not in the npm registry.
npm ERR! 404 Your package name is not valid, because
npm ERR! 404  1. name can no longer contain capital letters
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Administrator\AppData\Roaming\npm-cache\_logs\2020-04-21T0
8_22_15_940Z-debug.log

D:\work\webclientd-master>
author: besovideo    time: 2020-4-21 16:26
rightmenu ? 看提示信息好像是说不能有大写字母?

author: xurui    time: 2020-4-21 16:28
stronghill post on2020-4-21 16:22
D:\work\webclientd-master>npm install --save rightMenu
npm ERR! code E404
npm ERR! 404 Not Found ...

npm install rightmenu@1.1.0  --save
author: stronghill    time: 2020-4-21 16:31
谢谢回复!
npm install rightmenu@1.1.0
执行后,运行服务报错依旧
author: stronghill    time: 2020-4-21 16:31
ERROR  Failed to compile with 1 errors


This dependency was not found:

* rightMenu in ./src/main.js

To install it, you can run: npm install --save rightMenu
还是报这个
author: xurui    time: 2020-4-21 16:35
stronghill post on2020-4-21 16:31
ERROR  Failed to compile with 1 errors

试一下删除掉node_modules文件夹,重新安装一下
我刚才测试一下没有问题
author: stronghill    time: 2020-4-21 16:41
npm install rightmenu@1.1.0 --save
执行后,运行服务报错依旧
author: xurui    time: 2020-4-21 16:47
删除node_modules重新安装一下,或者使用 cnpm 安装
author: stronghill    time: 2020-4-21 16:54
删除掉node_modules文件夹,重新安装一下
author: stronghill    time: 2020-4-21 17:10
我试过了,还是报一样的错


author: xurui    time: 2020-4-21 17:14
1627119275  加我QQ ,可以远程看看吗
author: stronghill    time: 2020-4-26 10:01
现在是发布npm run build后,把dist发布到tomcat,访问报错,页面能出来,但报jws.js找不到,连不上后台服务,从原来安装路径里面将jws.js复制进去,报一堆函数访问不了。
但是npm run serve是能正常访问的,是我发布的方法不对么?




欢迎光临 mobile CCTV,mobile surveillance,police body worn cameras (http://bbs.besovideo.com:8067/) Powered by Discuz! X3.2