You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@seata.apache.org by "YvCeung (via GitHub)" <gi...@apache.org> on 2024/11/03 06:41:14 UTC

[I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

YvCeung opened a new issue, #6975:
URL: https://github.com/apache/incubator-seata/issues/6975

   <!-- Please do not use this issue template to report security vulnerabilities but refer to our [security policy](https://github.com/seata/seata/security/policy). -->
   
   - [ ] I have searched the [issues](https://github.com/seata/seata/issues) of this repository and believe that this is not a duplicate.
   
   ### Ⅰ. Issue Description
   
    Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed.
   
   ### Ⅱ. Describe what happened
   
   When I execute the './mvnw clean install -DskipTests=true' command locally, an error that fails to build the seata-console module will be reported, which prevents me from accessing the dashboard after the project is started.
   
   ```
   npm ERR! code ERR_SOCKET_TIMEOUT
   [INFO] npm ERR! errno ERR_SOCKET_TIMEOUT
   [INFO] npm ERR! network request to https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz failed, reason: Socket timeout
   [INFO] npm ERR! network This is a problem related to network connectivity.
   [INFO] npm ERR! network In most cases you are behind a proxy or have bad network settings.
   [INFO] npm ERR! network 
   [INFO] npm ERR! network If you are behind a proxy, please make sure that the
   [INFO] npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
   [INFO] 
   [INFO] npm ERR! A complete log of this run can be found in:
   
   
   
   
   367 error code ERR_SOCKET_TIMEOUT
   368 error errno ERR_SOCKET_TIMEOUT
   369 error network request to https://registry.npmjs.org/slice-ansi/-/slice-ansi-7.1.0.tgz failed, reason: Socket timeout
   370 error network This is a problem related to network connectivity.
   370 error network In most cases you are behind a proxy or have bad network settings.
   370 error network
   370 error network If you are behind a proxy, please make sure that the
   370 error network 'proxy' config is set properly.  See: 'npm help config'
   371 verbose exit 1
   372 timing npm Completed in 496313ms
   
   ```
   
   
   ### Ⅲ. Describe what you expected to happen
   
   
   ### Ⅳ. How to reproduce it (as minimally and precisely as possible)
   
   1. xxx
   2. xxx
   3. xxx
   
   Minimal yet complete reproducer code (or URL to code):
   
   
   
   ### Ⅴ. Anything else we need to know?
   
   
   ### Ⅵ. Environment:
   
   - JDK version(jdk8):
   - Seata client/server version:   branch 2.x latestcode
   - Database version: mysql8.0
   - OS(e.g. `uname -a`): macOS arm64( chip:m2pro)
   - Others:


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "YvCeung (via GitHub)" <gi...@apache.org>.
YvCeung commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2457024099

   > https://github.com/apache/incubator-seata/blob/2.x/console/pom.xml
   > 
   > ```
   >                         <id>install node and npm</id>
   >                         <goals>
   >                             <goal>install-node-and-npm</goal>
   >                         </goals>
   >                         <phase>generate-resources</phase>
   >                         <configuration>
   >                             <nodeVersion>v19.5.0</nodeVersion>
   >                             <nodeDownloadRoot>https://mirrors.aliyun.com/nodejs-release/</nodeDownloadRoot>
   >                         </configuration>
   >                     </execution>
   >                     <execution>
   >                         <id>npm install</id>
   >                         <goals>
   >                             <goal>npm</goal>
   >                         </goals>
   >                         <phase>generate-resources</phase>
   >                         <configuration>
   >                             <arguments>install</arguments>
   >                             <npmRegistryURL>https://registry.npmmirror.com/</npmRegistryURL>
   >                         </configuration>
   >                     </execution>
   > ```
   
   After I configured it as above, the build still failed.  stack info as belows:
   Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --registry=https://registry.npmmirror.com/' failed.
   
   ```java
   Caused by: org.apache.maven.plugin.MojoFailureException: Failed to run task
       at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute (AbstractFrontendMojo.java:100)
       at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo (DefaultBuildPluginManager.java:137)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:210)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:156)
       at org.apache.maven.lifecycle.internal.MojoExecutor.execute (MojoExecutor.java:148)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:117)
       at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject (LifecycleModuleBuilder.java:81)
       at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build (SingleThreadedBuilder.java:56)
       at org.apache.maven.lifecycle.internal.LifecycleStarter.execute (LifecycleStarter.java:128)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:305)
       at org.apache.maven.DefaultMaven.doExecute (DefaultMaven.java:192)
       at org.apache.maven.DefaultMaven.execute (DefaultMaven.java:105)
       at org.apache.maven.cli.MavenCli.execute (MavenCli.java:956)
       at org.apache.maven.cli.MavenCli.doMain (MavenCli.java:288)
       at org.apache.maven.cli.MavenCli.main (MavenCli.java:192)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launchEnhanced (Launcher.java:289)
       at org.codehaus.plexus.classworlds.launcher.Launcher.launch (Launcher.java:229)
       at org.codehaus.plexus.classworlds.launcher.Launcher.mainWithExitCode (Launcher.java:415)
       at org.codehaus.plexus.classworlds.launcher.Launcher.main (Launcher.java:356)
       at sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
       at sun.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
       at sun.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
       at java.lang.reflect.Method.invoke (Method.java:498)
       at org.apache.maven.wrapper.BootstrapMainStarter.start (BootstrapMainStarter.java:53)
       at org.apache.maven.wrapper.WrapperExecutor.execute (WrapperExecutor.java:152)
       at org.apache.maven.wrapper.MavenWrapperMain.main (MavenWrapperMain.java:76)
   Caused by: com.github.eirslett.maven.plugins.frontend.lib.TaskRunnerException: 'npm install --registry=https://registry.npmmirror.com/' failed.
   ```
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "psxjoy (via GitHub)" <gi...@apache.org>.
psxjoy commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2453483719

   > > It seems like you cannot connect to the registry.npmjs.org Maybe you can add a mirror registry website.
   > 
   > How to add npm mirror address, can you tell me in detail? Because the npm environment is generated when the maven command is executed, there is no local npm runtime environment required
   
   you can check this [file](https://github.com/apache/incubator-seata/blob/2.x/console/src/main/resources/static/console-fe/README.md)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "YvCeung (via GitHub)" <gi...@apache.org>.
YvCeung commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2453434742

   > It seems like you cannot connect to the registry.npmjs.org Maybe you can add a mirror registry website.
   
   How to add npm mirror address, can you tell me in detail? Because the npm environment is generated when the maven command is executed, there is no local npm runtime environment required


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2453682678

   https://github.com/apache/incubator-seata/blob/2.x/console/pom.xml
   ``` <execution>
                           <id>install node and npm</id>
                           <goals>
                               <goal>install-node-and-npm</goal>
                           </goals>
                           <phase>generate-resources</phase>
                           <configuration>
                               <nodeVersion>v19.5.0</nodeVersion>
                               <nodeDownloadRoot>https://mirrors.aliyun.com/nodejs-release/</nodeDownloadRoot>
                           </configuration>
                       </execution>
                       <execution>
                           <id>npm install</id>
                           <goals>
                               <goal>npm</goal>
                           </goals>
                           <phase>generate-resources</phase>
                           <configuration>
                               <arguments>install</arguments>
                               <npmRegistryURL>https://registry.npmmirror.com/</npmRegistryURL>
                           </configuration>
                       </execution>```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "funky-eyes (via GitHub)" <gi...@apache.org>.
funky-eyes closed issue #6975:  Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. 
URL: https://github.com/apache/incubator-seata/issues/6975


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "psxjoy (via GitHub)" <gi...@apache.org>.
psxjoy commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2453358918

   It seems like you cannot connect to the registry.npmjs.org
   Maybe you can add a mirror registry website.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org


Re: [I] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.15.0:npm (npm install) on project seata-console: Failed to run task: 'npm install' failed. [incubator-seata]

Posted by "YvCeung (via GitHub)" <gi...@apache.org>.
YvCeung commented on issue #6975:
URL: https://github.com/apache/incubator-seata/issues/6975#issuecomment-2457018424

   > https://github.com/apache/incubator-seata/blob/2.x/console/pom.xml
   > 
   > ```
   >                         <id>install node and npm</id>
   >                         <goals>
   >                             <goal>install-node-and-npm</goal>
   >                         </goals>
   >                         <phase>generate-resources</phase>
   >                         <configuration>
   >                             <nodeVersion>v19.5.0</nodeVersion>
   >                             <nodeDownloadRoot>https://mirrors.aliyun.com/nodejs-release/</nodeDownloadRoot>
   >                         </configuration>
   >                     </execution>
   >                     <execution>
   >                         <id>npm install</id>
   >                         <goals>
   >                             <goal>npm</goal>
   >                         </goals>
   >                         <phase>generate-resources</phase>
   >                         <configuration>
   >                             <arguments>install</arguments>
   >                             <npmRegistryURL>https://registry.npmmirror.com/</npmRegistryURL>
   >                         </configuration>
   >                     </execution>
   > ```
   
   After I configured it as above, the build still failed.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@seata.apache.org
For additional commands, e-mail: notifications-help@seata.apache.org