【Ambari编译报错】phantomjs从github上下载失败导致无法编译的问题 ...

打印 上一主题 下一主题

主题 883|帖子 883|积分 2653

PhantomJS 下载失败问题

1. 错误分析

下面是完整的报错日志:
  1. [ERROR] npm verb unsafe-perm in lifecycle true
  2. [ERROR] npm verb unlock done using /root/.npm/_locks/phantomjs-ca2567298810d09d.lock for /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs
  3. [ERROR] npm verb unlock done using /root/.npm/_locks/core-js-29b3f75c7b038ece.lock for /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma/node_modules/core-js
  4. [ERROR] npm verb about to build /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma
  5. [ERROR] npm info build /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma
  6. [ERROR] npm info linkStuff karma@2.0.5
  7. [ERROR] npm verb linkBins karma@2.0.5
  8. [ERROR] npm verb link bins [ { karma: './bin/karma' },
  9. [ERROR] npm verb link bins   '/opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/.bin',
  10. [ERROR] npm verb link bins   false ]
  11. [ERROR] npm verb linkMans karma@2.0.5
  12. [ERROR] npm verb rebuildBundles karma@2.0.5
  13. [ERROR] npm verb gentlyRm don't care about contents; nuking /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/.bin/karma
  14. [ERROR] npm verb rebuildBundles [ '.bin',
  15. [ERROR] npm verb rebuildBundles   'bluebird',
  16. [ERROR] npm verb rebuildBundles   'body-parser',
  17. [ERROR] npm verb rebuildBundles   'chokidar',
  18. [ERROR] npm verb rebuildBundles   'colors',
  19. [ERROR] npm verb rebuildBundles   'combine-lists',
  20. [ERROR] npm verb rebuildBundles   'connect',
  21. [ERROR] npm verb rebuildBundles   'core-js',
  22. [ERROR] npm verb rebuildBundles   'di',
  23. [ERROR] npm verb rebuildBundles   'dom-serialize',
  24. [ERROR] npm verb rebuildBundles   'expand-braces',
  25. [ERROR] npm verb rebuildBundles   'glob',
  26. [ERROR] npm verb rebuildBundles   'graceful-fs',
  27. [ERROR] npm verb rebuildBundles   'http-proxy',
  28. [ERROR] npm verb rebuildBundles   'isbinaryfile',
  29. [ERROR] npm verb rebuildBundles   'lodash',
  30. [ERROR] npm verb rebuildBundles   'log4js',
  31. [ERROR] npm verb rebuildBundles   'mime',
  32. [ERROR] npm verb rebuildBundles   'minimatch',
  33. [ERROR] npm verb rebuildBundles   'optimist',
  34. [ERROR] npm verb rebuildBundles   'qjobs',
  35. [ERROR] npm verb rebuildBundles   'range-parser',
  36. [ERROR] npm verb rebuildBundles   'rimraf',
  37. [ERROR] npm verb rebuildBundles   'safe-buffer',
  38. [ERROR] npm verb rebuildBundles   'socket.io',
  39. [ERROR] npm verb rebuildBundles   'source-map',
  40. [ERROR] npm verb rebuildBundles   'tmp',
  41. [ERROR] npm verb rebuildBundles   'useragent' ]
  42. [ERROR] npm info install karma@2.0.5
  43. [ERROR] npm info postinstall karma@2.0.5
  44. [ERROR] npm verb unlock done using /root/.npm/_locks/karma-f241847ca8dea731.lock for /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma
  45. [ERROR] npm verb stack Error: phantomjs-prebuilt@2.1.16 install: `node install.js`
  46. [ERROR] npm verb stack Exit status 1
  47. [ERROR] npm verb stack     at EventEmitter.<anonymous> (/opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node_modules/npm/lib/utils/lifecycle.js:217:16)
  48. [ERROR] npm verb stack     at emitTwo (events.js:87:13)
  49. [ERROR] npm verb stack     at EventEmitter.emit (events.js:172:7)
  50. [ERROR] npm verb stack     at ChildProcess.<anonymous> (/opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node_modules/npm/lib/utils/spawn.js:24:14)
  51. [ERROR] npm verb stack     at emitTwo (events.js:87:13)
  52. [ERROR] npm verb stack     at ChildProcess.emit (events.js:172:7)
  53. [ERROR] npm verb stack     at maybeClose (internal/child_process.js:829:16)
  54. [ERROR] npm verb stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:211:5)
  55. [ERROR] npm verb pkgid phantomjs-prebuilt@2.1.16
  56. [ERROR] npm verb cwd /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web
  57. [ERROR] npm ERR! Linux 5.15.153.1-microsoft-standard-WSL2
  58. [ERROR] npm ERR! argv "/opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node" "/opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node/node_modules/npm/bin/npm-cli.js" "in
  59. stall" "--unsafe-perm" "--progress" "--save" "--verbose" "--registry=https://registry.npmmirror.com/"
  60. [ERROR] npm ERR! node v4.5.0
  61. [ERROR] npm ERR! npm  v2.15.0
  62. [ERROR] npm ERR! code ELIFECYCLE
  63. [ERROR]
  64. [ERROR] npm ERR! phantomjs-prebuilt@2.1.16 install: `node install.js`
  65. [ERROR] npm ERR! Exit status 1
  66. [ERROR] npm ERR!
  67. [ERROR] npm ERR! Failed at the phantomjs-prebuilt@2.1.16 install script 'node install.js'.
  68. [ERROR] npm ERR! This is most likely a problem with the phantomjs-prebuilt package,
  69. [ERROR] npm ERR! not with npm itself.
  70. [ERROR] npm ERR! Tell the author that this fails on your system:
  71. [ERROR] npm ERR!     node install.js
  72. [ERROR] npm ERR! You can get information on how to open an issue for this project with:
  73. [ERROR] npm ERR!     npm bugs phantomjs-prebuilt
  74. [ERROR] npm ERR! Or if that isn't available, you can get their info via:
  75. [ERROR] npm ERR!
  76. [ERROR] npm ERR!     npm owner ls phantomjs-prebuilt
  77. [ERROR] npm ERR! There is likely additional logging output above.
  78. [ERROR] npm verb exit [ 1, true ]
  79. [ERROR] npm verb unbuild node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
  80. [ERROR] npm info preuninstall phantomjs-prebuilt@2.1.16
  81. [ERROR] npm info uninstall phantomjs-prebuilt@2.1.16
  82. [ERROR] npm verb unbuild rmStuff phantomjs-prebuilt@2.1.16 from /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules
  83. [ERROR] npm verb unbuild rmStuff in /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules
  84. [ERROR] npm verb gentlyRm vacuuming from /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/.bin/phantomjs up to /opt/modules/ambari/ambari-a
  85. dmin/src/main/resources/ui/admin-web
  86. [ERROR] npm info postuninstall phantomjs-prebuilt@2.1.16
  87. [ERROR] npm verb gentlyRm don't care about contents; nuking /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher/node_modules/phantomjs-prebuilt
  88. [ERROR] npm verb unbuild node_modules/karma-phantomjs-launcher
  89. [ERROR] npm info preuninstall karma-phantomjs-launcher@1.0.4
  90. [ERROR] npm info uninstall karma-phantomjs-launcher@1.0.4
  91. [ERROR] npm verb unbuild rmStuff karma-phantomjs-launcher@1.0.4 from /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules
  92. [ERROR] npm info postuninstall karma-phantomjs-launcher@1.0.4
  93. [ERROR] npm verb gentlyRm don't care about contents; nuking /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/karma-phantomjs-launcher
  94. [ERROR] npm verb unbuild node_modules/phantomjs
  95. [ERROR] npm info preuninstall phantomjs@2.1.7
  96. [ERROR] npm info uninstall phantomjs@2.1.7
  97. [ERROR] npm verb unbuild rmStuff phantomjs@2.1.7 from /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules
  98. [ERROR] npm verb gentlyRm vacuuming from /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/.bin/phantomjs up to /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web
  99. [ERROR] npm info postuninstall phantomjs@2.1.7
  100. [ERROR] npm verb gentlyRm don't care about contents; nuking /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/node_modules/phantomjs
  101. [ERROR]
  102. [ERROR] npm ERR! Please include the following file with any support request:
  103. [ERROR] npm ERR!     /opt/modules/ambari/ambari-admin/src/main/resources/ui/admin-web/npm-debug.log
  104. [INFO] ------------------------------------------------------------------------
  105. [INFO] BUILD FAILURE
  106. [INFO] ------------------------------------------------------------------------
  107. [INFO] Total time:  55.502 s
  108. [INFO] Finished at: 2024-10-24T01:16:25Z
  109. [INFO] ------------------------------------------------------------------------
  110. [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (npm install) on project ambari-admin: Failed to run task: 'npm install --unsafe-perm --progress --save --verbose --registry=
  111. https://registry.npmmirror.com/' failed. (error code 1) -> [Help 1]
  112. org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.3:npm (npm install) on project ambari-admin: Failed to run task
  113.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:215)
  114.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  115.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  116.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  117.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  118.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  119.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  120.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  121.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  122.     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  123.     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
  124.     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
  125.     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
  126.     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  127.     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  128.     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  129.     at java.lang.reflect.Method.invoke (Method.java:498)
  130.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
  131.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
  132.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
  133.     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
  134. Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task
  135.     at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:95)
  136.     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
  137.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
  138.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  139.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  140.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  141.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  142.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  143.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  144.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  145.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  146.     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  147.     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
  148.     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
  149.     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
  150.     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  151.     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  152.     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  153.     at java.lang.reflect.Method.invoke (Method.java:498)
  154.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
  155.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
  156.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
  157.     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
  158. Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --unsafe-perm --progress --save --verbose --registry=https://registry.npmmirror.com/' failed. (error code 1)
  159.     at com.github.eirslett.maven.plugins.frontend.lib.NodeTaskExecutor.execute (NodeTaskExecutor.java:60)
  160.     at com.github.eirslett.maven.plugins.frontend.mojo.NpmMojo.execute (NpmMojo.java:62)
  161.     at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:89)
  162.     at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
  163.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
  164.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
  165.     at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
  166.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
  167.     at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
  168.     at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
  169.     at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
  170.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
  171.     at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
  172.     at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
  173.     at org.apache.maven.cli.MavenCli.execute (MavenCli.java:972)
  174.     at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:293)
  175.     at org.apache.maven.cli.MavenCli.main (MavenCli.java:196)
  176.     at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
  177.     at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
  178.     at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
  179.     at java.lang.reflect.Method.invoke (Method.java:498)
  180.     at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:282)
  181.     at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:225)
  182.     at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:406)
  183.     at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:347)
  184. [ERROR]
  185. [ERROR]
  186. [ERROR] For more information about the errors and possible solutions, please read the following articles:
  187. [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException
复制代码
1.1 错误定位

从日志中可以看出,phantomjs-prebuilt 在实验下载 phantomjs 文件时失败,导致安装中断。

2. 解决方案

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

0 个回复

倒序浏览

快速回复

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

本版积分规则

刘俊凯

金牌会员
这个人很懒什么都没写!

标签云

快速回复 返回顶部 返回列表