解决方案:根目录下去maven编译,不要在每个单独编译,否则不能自动解决依赖,如果你已经在子模块进行了编译,请回到根目录先clean一下,再重新编译。
maven:Failed to delete tb-http-transport.rpm错误信息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-clean-plugin:2.5:clean (default-clean) on project http: Failed to clean project: Failed to delete D:\my_project\thingsboard\transport\http\target\tb-http-transport.rpm -> [Help 1]解决方案:第一次编译失败,再次编译可能会提示该错误,可以手动到报错路径删除,如果提示文件正在使用,需要在任务管理器杀死java进程后再手动删除。
npm:npm:cb() never called!错误信息:
npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://npm.community> npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\yuren\AppData\Roaming\npm-cache\_logs\2019-11-06T10_55_28_258Z-debug.log解决方案:
尝试npm cache clean --force 后再次npm install 无果;
尝试更换淘宝镜像源后再次npm install 无果;
怀疑有些包下载需要 F-Q ,全局代理 F-Q 后问题依然存在;
参考网上关闭所有代理后问题依然存在;
通过log日志分析最后一个解包报错的地方,屏蔽需要的material-design-icons,新modules rxjs仍然报错;
参考npm ERR cb() never called 执行
npm install --no-package-lock之后提示npm ERR! path git,添加git 到环境变量后正常。
npm:npm ERR! path git错误信息
npm ERR! path git npm ERR! code ENOENT npm ERR! errno ENOENT npm ERR! syscall spawn git npm ERR! enoent Error while executing: npm ERR! enoent undefined ls-remote -h -t git://github.com/fabiobiondi/angular-解决方案:添加git到环境变量。
No compiler is provided in this environment错误信息:
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-compiler-plugin:3. 1:compile (default-compile) on project netty-mqtt: Compilation failure [ERROR] No compiler is provided in this environment. Perhaps you are running on a JRE rather than a JDK?需要在环境变量中设置java,包含%JAVA_HOME%bin;%JAVA_HOME%lib;请参考: