Seems your node.js version is not up todate. If you are in Ubuntu 15, try updraing node to version 6.x ? If in Ubuntu 16 you can install version 7.x
Also, upgrade your npm version to >= 4.x On Fri, Jul 21, 2017 at 4:14 PM, Nadeeshani Pathirennehelage < [email protected]> wrote: > Hi, > > Full error log is attached herewith. > > Thank you. > > On Fri, Jul 21, 2017 at 4:03 PM, Nadeeshani Pathirennehelage < > [email protected]> wrote: > >> Hi All, >> >> I got this issue while trying to build carbon-apimgt using Java 8. >> >> First got an error saying to install npm. >> >> *Before installing npm* >> >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] BUILD FAILURE >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Total time: 03:33 min >> [INFO] Finished at: 2017-07-21T14:04:07+05:30 >> [INFO] Final Memory: 139M/2662M >> [INFO] ------------------------------------------------------------ >> ------------ >> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec >> (npm install (initialize)) on project >> org.wso2.carbon.apimgt.publisher.feature: >> Command execution failed. Cannot run program "npm" (in directory >> "/home/tharindu/CODEBASE/GIT/WSO2/carbon-apimgt/features/api >> mgt/org.wso2.carbon.apimgt.publisher.feature/src/main/resources/publisher"): >> error=2, No such file or directory -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] http://cwiki.apache.org/conflu >> ence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn <goals> -rf :org.wso2.carbon.apimgt.publisher.feature >> >> >> >> >> *After installing npm* >> I tried installing npm in the following two ways: >> Ubuntu 15.06 - npm version 1.4.21 in ubuntu software center. >> Ubuntu 16.06 - npm version 3.5.2 in ubuntu software center. >> >> Then I got the following error. >> >> [INFO] BUILD FAILURE >> [INFO] ------------------------------------------------------------ >> ------------ >> [INFO] Total time: 02:52 min >> [INFO] Finished at: 2017-07-21T12:17:21+05:30 >> [INFO] Final Memory: 131M/1333M >> [INFO] ------------------------------------------------------------ >> ------------ >> [ERROR] Failed to execute goal org.codehaus.mojo:exec-maven-plugin:1.5.0:exec >> (npm run build (compile)) on project >> org.wso2.carbon.apimgt.publisher.feature: >> Command execution failed. Process exited with an error: 1 (Exit value: 1) >> -> [Help 1] >> [ERROR] >> [ERROR] To see the full stack trace of the errors, re-run Maven with the >> -e switch. >> [ERROR] Re-run Maven using the -X switch to enable full debug logging. >> [ERROR] >> [ERROR] For more information about the errors and possible solutions, >> please read the following articles: >> [ERROR] [Help 1] http://cwiki.apache.org/conflu >> ence/display/MAVEN/MojoExecutionException >> [ERROR] >> [ERROR] After correcting the problems, you can resume the build with the >> command >> [ERROR] mvn <goals> -rf :org.wso2.carbon.apimgt.publisher.feature >> >> Any thoughts or help on this is highly appreciated. >> >> Thank you, >> Nadeeshani. >> >> -- >> Pathirennehelage Nadeeshani >> Software Engineer | WSO2 Inc. >> Platform Security Team >> mobile : +94 716545223 <+94%2071%20654%205223> >> >> > > > -- > Pathirennehelage Nadeeshani > Software Engineer | WSO2 Inc. > Platform Security Team > mobile : +94 716545223 <+94%2071%20654%205223> > > > _______________________________________________ > Dev mailing list > [email protected] > http://wso2.org/cgi-bin/mailman/listinfo/dev > > -- Sajith Kariyawasam *Associate Tech Lead* *WSO2 Inc.; http://wso2.com <http://wso2.com/>* *Committer and PMC member, Apache Stratos * *AMIE (SL)* *Mobile: 0772269575*
_______________________________________________ Dev mailing list [email protected] http://wso2.org/cgi-bin/mailman/listinfo/dev
