找回密码
 立即注册
搜索

开发问题 编译失败,版本1040

2
回复
2188
查看
[复制链接]

9

主题

25

帖子

170

积分

 楼主| 2019-5-23 17:51:50 显示全部楼层 |阅读模式
在本地编译是成功的,但是在服务器上编译是失败的。 版本号: root@localhost:~# node -v v9.2.0 root@localhost:~# npm -v 6.9.1-next.0 错误代码:
  1. + hap-toolkit@0.4.7
  2. added 737 packages in 73.984s
  3. + hap -v
  4. 0.4.7
  5. + npm install
  6. > Oppo-IoT-QuickAPP@1.0.0 postinstall /var/lib/jenkins/workspace/Oppo-IoT
  7. > hap postinstall
  8. [WARN] Deprecated command!
  9. npm WARN Oppo-IoT-QuickAPP@1.0.0 No repository field.
  10. npm WARN Oppo-IoT-QuickAPP@1.0.0 scripts['server'] should probably be scripts['start'].
  11. npm WARN Oppo-IoT-QuickAPP@1.0.0 No license field.
  12. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.9 (node_modules/fsevents):
  13. npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.9: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
  14. added 68 packages in 3.974s
  15. + npm run release-test
  16. > Oppo-IoT-QuickAPP@1.0.0 release-test /var/lib/jenkins/workspace/Oppo-IoT
  17. > cp ./envArgs/test.js ./src/encode/env.js && hap release
  18. [INFO] hap-toolkit: 0.4.7; babel: 7.4.5; webpack: 4.32.2;
  19. (node:9845) UnhandledPromiseRejectionWarning: Unhandled promise rejection (rejection id: 1): TypeError: Path must be a string. Received undefined
  20. (node:9845) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
  21. + cd ./dist
  22. /tmp/jenkins4667210530313872306.sh: 6: cd: can't cd to ./dist
  23. Build step '执行 shell' marked build as failure
  24. Finished: FAILURE
复制代码
回复

使用道具 举报

2019-5-25 09:29:55 显示全部楼层
你好,麻烦留下微信,或者添加微信号:vivo-technology,帮你解答
回复

使用道具 举报

9

主题

25

帖子

170

积分

 楼主| 2019-5-27 16:45:48 显示全部楼层
好了,感谢。是「manifest」中的文件名大小写问题。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册