Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Could not install node: Unable to delete directory #878

Open
railsmith opened this issue Feb 3, 2020 · 0 comments
Open

Could not install node: Unable to delete directory #878

railsmith opened this issue Feb 3, 2020 · 0 comments

Comments

@railsmith
Copy link

I am receiving the below error on Linux but it is working fine when I build the project on Windows. The permission on the folders looks fine. How to fix this error?

[INFO] BUILD FAILURE [INFO] ------------------------------------------------------------------------ [INFO] Total time: 04:06 min [INFO] Finished at: 2020-02-03T07:11:02-06:00 [INFO] Final Memory: 22M/371M [INFO] ------------------------------------------------------------------------ [ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:install-node-and-npm (install node and npm) on project pco-frontend: Could not install Node: Unable to delete directory /NAS/Fordata/Jenkins/workspace/usalpapjkb01/55c09f24/workspace/PCO-Data-Viewer/build-pipeline/pco-frontend/node/tmp/node-v12.13.1-linux-x64/include/node/openssl/archs/linux-armv4/asm/include. -> [Help 1] org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.9.1:install-node-and-npm (install node and npm) on project pco-frontend: Could not install Node: Unable to delete directory /NAS/Fordata/Jenkins/workspace/usalpapjkb01/55c09f24/workspace/PCO-Data-Viewer/build-pipeline/pco-frontend/node/tmp/node-v12.13.1-linux-x64/include/node/openssl/archs/linux-armv4/asm/include. at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:212) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:153) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:145) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:116) at org.apache.maven.lifecycle.internal.LifecycleModuleBuilder.buildProject(LifecycleModuleBuilder.java:80) at org.apache.maven.lifecycle.internal.builder.singlethreaded.SingleThreadedBuilder.build(SingleThreadedBuilder.java:51) at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.java:128) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:307) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:193) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:106) at org.apache.maven.cli.MavenCli.execute(MavenCli.java:863) at org.apache.maven.cli.MavenCli.doMain(MavenCli.java:288) at org.apache.maven.cli.MavenCli.main(MavenCli.java:199) 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) Caused by: org.apache.maven.plugin.MojoFailureException: Could not install Node: Unable to delete directory /NAS/Fordata/Jenkins/workspace/usalpapjkb01/55c09f24/workspace/PCO-Data-Viewer/build-pipeline/pco-frontend/node/tmp/node-v12.13.1-linux-x64/include/node/openssl/archs/linux-armv4/asm/include. at com.github.eirslett.maven.plugins.frontend.mojo.MojoUtils.toMojoFailureException(MojoUtils.java:28) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:103) at org.apache.maven.plugin.DefaultBuildPluginManager.executeMojo(DefaultBuildPluginManager.java:134) at org.apache.maven.lifecycle.internal.MojoExecutor.execute(MojoExecutor.java:207) ... 20 more Caused by: com.github.eirslett.maven.plugins.frontend.lib.InstallationException: Could not install Node at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeDefault(NodeInstaller.java:207) at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.install(NodeInstaller.java:97) at com.github.eirslett.maven.plugins.frontend.mojo.InstallNodeAndNpmMojo.execute(InstallNodeAndNpmMojo.java:101) at com.github.eirslett.maven.plugins.frontend.mojo.AbstractFrontendMojo.execute(AbstractFrontendMojo.java:94) ... 22 more Caused by: java.io.IOException: Unable to delete directory /NAS/Fordata/Jenkins/workspace/usalpapjkb01/55c09f24/workspace/PCO-Data-Viewer/build-pipeline/pco-frontend/node/tmp/node-v12.13.1-linux-x64/include/node/openssl/archs/linux-armv4/asm/include. at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:873) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:1239) at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:903) at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:869) at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.deleteTempDirectory(NodeInstaller.java:320) at com.github.eirslett.maven.plugins.frontend.lib.NodeInstaller.installNodeDefault(NodeInstaller.java:202) ... 25 more [ERROR] [ERROR] [ERROR] For more information about the errors and possible solutions, please read the following articles: [ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException [ERROR] [ERROR] After correcting the problems, you can resume the build with the command [ERROR] mvn <goals> -rf :pco-frontend

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant