I generated a vanilla JHipster microservice gateway. With JHipster registry running I am able to start it using ./mvnw and it works. I can package it using ./mvnw -Pdev package and that works. However, if I try to package it using ./mvnw -Pprod package it fails apparently during the webpack build prod step.
JHipster version 4.14.0
Yarn version 1.3.2
Node version v6.11.5
yo-rc.json
{
"generator-jhipster": {
"promptValues": {
"packageName": "org.jhipster.blog",
"nativeLanguage": "en"
},
"jhipsterVersion": "4.14.0",
"baseName": "blog",
"packageName": "org.jhipster.blog",
"packageFolder": "org/jhipster/blog",
"serverPort": "8080",
"authenticationType": "jwt",
"cacheProvider": "hazelcast",
"enableHibernateCache": true,
"websocket": false,
"databaseType": "sql",
"devDatabaseType": "h2Disk",
"prodDatabaseType": "postgresql",
"searchEngine": "elasticsearch",
"messageBroker": false,
"serviceDiscoveryType": "eureka",
"buildTool": "maven",
"enableSocialSignIn": false,
"enableSwaggerCodegen": false,
"jwtSecretKey": "0b9d434149a3efef6af7362acaf33585d5eaa492",
"clientFramework": "angularX",
"useSass": false,
"clientPackageManager": "yarn",
"applicationType": "gateway",
"testFrameworks": [
"gatling",
"protractor"
],
"jhiPrefix": "jhi",
"enableTranslation": true,
"nativeLanguage": "en",
"languages": [
"en",
"es"
]
}
}
Maven Output
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) # blog ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:prod' in /Users/mschreiber/temp/microservice-demo/blog
[INFO] yarn run v1.3.2
[INFO] $ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[INFO] $ rimraf target/{aot,www}
[INFO] $ yarn run webpack -- --config webpack/webpack.prod.js --profile
[ERROR] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
[INFO] $ node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
[INFO] MergetJsonsWebpackPlugin compilation started...
[INFO] MergetJsonsWebpackPlugin compilation completed...
[ERROR] buffer.js:202
[ERROR] throw new TypeError(kFromErrorMsg);
[ERROR] ^
[ERROR]
[ERROR] TypeError: First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.
[ERROR] at Function.Buffer.from (buffer.js:202:9)
[ERROR] at new Buffer (buffer.js:158:17)
[ERROR] at writeOut (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/lib/Compiler.js:334:17)
[ERROR] at require.forEach (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/lib/Compiler.js:345:12)
[ERROR] at /Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/node_modules/async/dist/async.js:3096:16
[ERROR] at eachOfArrayLike (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/node_modules/async/dist/async.js:1055:9)
[ERROR] at eachOf (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/node_modules/async/dist/async.js:1103:5)
[ERROR] at Object.eachLimit (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/node_modules/async/dist/async.js:3158:5)
[ERROR] at emitFiles (/Users/mschreiber/temp/microservice-demo/blog/node_modules/webpack/lib/Compiler.js:315:21)
[ERROR] at /Users/mschreiber/temp/microservice-demo/blog/node_modules/mkdirp/index.js:30:20
[ERROR] at FSReqWrap.oncomplete (fs.js:135:15)
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 01:05 min
[INFO] Finished at: 2018-03-06T08:32:03-05:00
[INFO] Final Memory: 44M/372M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project blog: Failed to run task: 'yarn run webpack:prod' failed. org.apache.commons.exec.ExecuteException: 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/confluence/display/MAVEN/MojoFailureException
This issue is related to the workbox-webpack-plugin dependency of JHipster and is fixed in the v4.14.1 release (related commit). To fix it in your generated project, make the following changes:
package.json:
- "workbox-webpack-plugin": "3.0.0-alpha.3",
+ "workbox-webpack-plugin": "3.0.0-beta.1",
webpack/webpack.prod.js
- new WorkboxPlugin({
+ new WorkboxPlugin.GenerateSW({
You can also upgrade to the latest generator-jhipster release with yarn global upgrade generator-jhipster, then upgrade your project with jhipster upgrade. For more info on the upgrade command, see the relevant documentation.
Related
So i got my jenkins pipeline setup for a application that uses spring boot as backend and vuejs as frontend. The maven build process builds the frontend first, copies that to the backend and then builds the backend. But during the build of the frontend the process fails ONLY if i run it through the jenkins pipeline. (for other people the same pipeline apparently works on a different machine)
[INFO] npm ERR! code EAGAIN
[INFO] npm ERR! syscall spawn sh
[INFO] npm ERR! path /var/lib/jenkins/workspace/pipeline/frontend/node_modules/pre-commit
[INFO] npm ERR! errno -11
[INFO] npm ERR! spawn sh EAGAIN
[INFO] npm ERR! command sh -c node install.js
[INFO]
[INFO] npm ERR! A complete log of this run can be found in:
[INFO] npm ERR! /var/lib/jenkins/.npm/_logs/2022-07-22T09_11_43_478Z-debug-0.log
the relevant part of the log is here: https://pastebin.com/ewp6zRcv
the jenkins pipeline is:
pipeline {
agent any
parameters {
gitParameter branchFilter: 'origin/(.*)', defaultValue: 'staging', name: 'BRANCH', type: 'PT_BRANCH'
}
tools {
maven "Maven"
nodejs "Node"
}
stages {
stage('Build') {
steps {
// Get some code from a GitHub repository
git branch: "${params.BRANCH}", url: 'https://github.com/TheExkaliburg/MoreFair'
// Run Maven on a Unix agent.
sh "mvn -Dmaven.test.failure.ignore=true clean package"
}
post {
success {
archiveArtifacts 'target/*.jar'
}
}
}
}
}
the jenkins is installed on a linux server with ubuntu 20.04 and the project itself can be found on https://github.com/TheExkaliburg/MoreFair and the branch to be built is staging
the strange thing is that EAGAIN failures are normally “Resource temporarily unavailable.” failures. running the process as root or as the jenkins user works fine without any errors, i have enough leftover disk space and my ram & cpu are never even close to getting to 100% during the build process
its also strange since the error that comes up is not always the same, f.e.
[INFO] - Building for production...
[INFO] node[80787]: pthread_create: Resource temporarily unavailable
[INFO] node:events:505
[INFO] throw er; // Unhandled 'error' event
[INFO] ^
[INFO]
[INFO] Error: spawn /var/lib/jenkins/workspace/MoreFairStaging/frontend/node/node EAGAIN
[INFO] at Process.ChildProcess._handle.onexit (node:internal/child_process:283:19)
[INFO] at onErrorNT (node:internal/child_process:478:16)
[INFO] at processTicksAndRejections (node:internal/process/task_queues:83:21)
[INFO] Emitted 'error' event on ChildProcess instance at:
[INFO] at Process.ChildProcess._handle.onexit (node:internal/child_process:289:12)
[INFO] at onErrorNT (node:internal/child_process:478:16)
[INFO] at processTicksAndRejections (node:internal/process/task_queues:83:21) {
[INFO] errno: -11,
[INFO] code: 'EAGAIN',
[INFO] syscall: 'spawn /var/lib/jenkins/workspace/MoreFairStaging/frontend/node/node',
[INFO] path: '/var/lib/jenkins/workspace/MoreFairStaging/frontend/node/node',
[INFO] spawnargs: [
[INFO] '/var/lib/jenkins/workspace/MoreFairStaging/frontend/node_modules/thread-loader/dist/worker.js',
[INFO] 20
[INFO] ]
[INFO] }
or
[7,371s][warning][os,thread] Failed to start thread - pthread_create failed (EAGAIN) for attributes: stacksize: 1024k, guardsize: 0k, detached.
the version for node are 16.16.0 and for npm 8.11; maven is on 3.8.6 with java 17 for maven and java 11 for jenkins (2.346.2)
So the problem with this specific case was that the service config didn't allow for more tasks to spawn
a simple way to fix this (after one week of recherche and trying a various amount of things) is systemctl edit jenkins and add to the config
[Service]
TaskMax=500
the number can vary but the default of 165 you can find out through systemctl show --property=DefaultTasksMax wasn't enough
I have selenium testing Maven project and i create a job on jenkins to run the POM.xml file by integrating it with GitHub. So when i click on "Build Now" to run the job in Jenkins its directly get the entire code from git and works as expected with SUCCESS result on windows machine. But when i create the same job in Jenkins on Linux machine it gives me errors. Need help on this
Started by user Admin fmcdjen
Running in Durability level: MAX_SURVIVABILITY
[Pipeline] Start of Pipeline
[Pipeline] node
Running on Jenkins in /var/jenkins_home/workspace/SeleniumTest
[Pipeline] {
[Pipeline] timeout
Timeout set to expire in 20 min
[Pipeline] {
[Pipeline] stage
[Pipeline] { (Checkout SCM)
[Pipeline] echo
Checking out git repo
[Pipeline] checkout
using credential gitHubID
> git rev-parse --is-inside-work-tree # timeout=10
Fetching changes from the remote Git repository
> git config remote.origin.url git#github.ford.com:dealer-platform/QA-selenium-automation.git # timeout=10
Fetching upstream changes from git#github.ford.com:dealer-platform/QA-selenium-automation.git
> git --version # timeout=10
using GIT_SSH to set credentials
> git fetch --tags --progress git#github.ford.com:dealer-platform/QA-selenium-automation.git +refs/heads/*:refs/remotes/origin/*
> git rev-parse origin/master^{commit} # timeout=10
Checking out Revision 25693e55034bef998abb437292745132f8b9c1c4 (origin/master)
> git config core.sparsecheckout # timeout=10
> git checkout -f 25693e55034bef998abb437292745132f8b9c1c4
Commit message: "comitted"
> git rev-list --no-walk 25693e55034bef998abb437292745132f8b9c1c4 # timeout=10
[Pipeline] }
[Pipeline] // stage
[Pipeline] stage
[Pipeline] { (Maven Build & Unit Testing)
[Pipeline] echo
Maven build and test
[Pipeline] withMaven
[withMaven] Options: []
[withMaven] Available options:
[withMaven] using JDK installation provided by the build agent
[withMaven] using Maven installation 'Maven_3.6.0'
[Pipeline] {
[Pipeline] sh
+ mvn test -DSuiteXmlFile=testng.xml
----- withMaven Wrapper script -----
Picked up JAVA_TOOL_OPTIONS: -Dmaven.ext.class.path="/var/jenkins_home/workspace/SeleniumTest#tmp/withMavena8cb286b/pipeline-maven-spy.jar" -Dorg.jenkinsci.plugins.pipeline.maven.reportsFolder="/var/jenkins_home/workspace/SeleniumTest#tmp/withMavena8cb286b"
Apache Maven 3.6.0 (97c98ec64a1fdfee7767ce5ffb20918da4f719f3; 2018-10-24T14:41:47-04:00)
Maven home: /var/jenkins_home/tools/hudson.tasks.Maven_MavenInstallation/Maven_3.6.0
Java version: 1.8.0_181, vendor: Oracle Corporation, runtime: /usr/lib/jvm/java-8-openjdk-amd64/jre
Default locale: en, platform encoding: UTF-8
OS name: "linux", version: "3.10.0-957.21.2.el7.x86_64", arch: "amd64", family: "unix"
[INFO] [jenkins-event-spy] Generate /var/jenkins_home/workspace/SeleniumTest#tmp/withMavena8cb286b/maven-spy-20190719-093036-9118622080910645891447.log.tmp ...
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for FMCDealerFramework:FMCDealerFramework:jar:0.0.1-SNAPSHOT
[WARNING] 'dependencies.dependency.systemPath' for util.Xls_Reader:Xls_Reader:jar should not point at files within the project directory, ${project.basedir}/repository/xls_Reader.jar will be unresolvable by dependent projects # line 42, column 24
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO]
[INFO] ---------------< FMCDealerFramework:FMCDealerFramework >----------------
[INFO] Building FMCDealerFramework 0.0.1-SNAPSHOT
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- maven-resources-plugin:2.6:resources (default-resources) # FMCDealerFramework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 1 resource
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:compile (default-compile) # FMCDealerFramework ---
[INFO] Nothing to compile - all classes are up to date
[INFO]
[INFO] --- maven-resources-plugin:2.6:testResources (default-testResources) # FMCDealerFramework ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] skip non existing resourceDirectory /var/jenkins_home/workspace/SeleniumTest/src/test/resources
[INFO]
[INFO] --- maven-compiler-plugin:3.8.1:testCompile (default-testCompile) # FMCDealerFramework ---
[INFO] No sources to compile
[INFO]
[INFO] --- maven-surefire-plugin:3.0.0-M3:test (default-test) # FMCDealerFramework ---
[INFO] No tests to run.
[INFO]
[INFO] -------------------------------------------------------
[INFO] T E S T S
[INFO] -------------------------------------------------------
[INFO] Running TestSuite
...
... TestNG 6.14.3 by Cédric Beust (cedric#beust.com)
...
pass
pass
pass
pass
Read test data file mailreport.properties...
No Recepient Email Ids found.
No Recepient Email Ids found.
No Recepient Email Ids found.
[ERROR] Tests run: 12, Failures: 8, Errors: 0, Skipped: 4, Time elapsed: 1.232 s <<< FAILURE! - in TestSuite
[ERROR] setUpBrowser(com.ford.FMCDealer.testcases.TC04_FMC_Quick_Filters) Time elapsed: 0.362 s <<< FAILURE!
java.lang.IllegalStateException: The driver is not executable: /var/jenkins_home/workspace/SeleniumTest/./lib/chromedriver.exe
[ERROR] tearDown(com.ford.FMCDealer.testcases.TC04_FMC_Quick_Filters) Time elapsed: 0.443 s <<< FAILURE!
java.lang.NullPointerException
[ERROR] setUpBrowser(com.ford.FMCDealer.testcases.TC07_FMC_Stemming) Time elapsed: 0.446 s <<< FAILURE!
java.lang.IllegalStateException: The driver is not executable: /var/jenkins_home/workspace/SeleniumTest/./lib/chromedriver.exe
[ERROR] tearDown(com.ford.FMCDealer.testcases.TC07_FMC_Stemming) Time elapsed: 0.448 s <<< FAILURE!
java.lang.NullPointerException
[ERROR] setUpBrowser(com.ford.FMCDealer.testcases.TC05_FMC_Toggle_to_change_view) Time elapsed: 0.449 s <<< FAILURE!
java.lang.IllegalStateException: The driver is not executable: /var/jenkins_home/workspace/SeleniumTest/./lib/chromedriver.exe
[ERROR] tearDown(com.ford.FMCDealer.testcases.TC05_FMC_Toggle_to_change_view) Time elapsed: 0.45 s <<< FAILURE!
java.lang.NullPointerException
[ERROR] setUpBrowser(com.ford.FMCDealer.testcases.TC03_FMC_Sort_Option_Filter) Time elapsed: 0.453 s <<< FAILURE!
java.lang.IllegalStateException: The driver is not executable: /var/jenkins_home/workspace/SeleniumTest/./lib/chromedriver.exe
[ERROR] tearDown(com.ford.FMCDealer.testcases.TC03_FMC_Sort_Option_Filter) Time elapsed: 0.455 s <<< FAILURE!
java.lang.NullPointerException
[INFO]
[INFO] Results:
[INFO]
[ERROR] Failures:
[ERROR] TC03_FMC_Sort_Option_Filter>TestCaseBase.setUpBrowser:104->TestCaseBase.selectBrowser:157->TestCaseBase.setUpChromeWin32:351 » IllegalState
[ERROR] TC03_FMC_Sort_Option_Filter>TestCaseBase.tearDown:296 » NullPointer
[ERROR] TC04_FMC_Quick_Filters>TestCaseBase.setUpBrowser:104->TestCaseBase.selectBrowser:157->TestCaseBase.setUpChromeWin32:351 » IllegalState
[ERROR] TC04_FMC_Quick_Filters>TestCaseBase.tearDown:296 » NullPointer
[ERROR] TC05_FMC_Toggle_to_change_view>TestCaseBase.setUpBrowser:104->TestCaseBase.selectBrowser:157->TestCaseBase.setUpChromeWin32:351 » IllegalState
[ERROR] TC05_FMC_Toggle_to_change_view>TestCaseBase.tearDown:296 » NullPointer
[ERROR] TC07_FMC_Stemming>TestCaseBase.setUpBrowser:104->TestCaseBase.selectBrowser:157->TestCaseBase.setUpChromeWin32:351 » IllegalState
[ERROR] TC07_FMC_Stemming>TestCaseBase.tearDown:296 » NullPointer
[INFO]
[ERROR] Tests run: 12, Failures: 8, Errors: 0, Skipped: 4
[INFO]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 6.880 s
[INFO] Finished at: 2019-07-19T09:30:44-04:00
[INFO] ------------------------------------------------------------------------
[INFO] [jenkins-event-spy] Generated /var/jenkins_home/workspace/SeleniumTest#tmp/withMavena8cb286b/maven-spy-20190719-093036-9118622080910645891447.log
[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:3.0.0-M3:test (default-test) on project FMCDealerFramework: There are test failures.
[ERROR]
[ERROR] Please refer to /var/jenkins_home/workspace/SeleniumTest/target/surefire-reports for the individual test results.
[ERROR] Please refer to dump files (if any exist) [date].dump, [date]-jvmRun[N].dump and [date].dumpstream.
[ERROR] -> [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/confluence/display/MAVEN/MojoFailureException
[Pipeline] }
[withMaven] junitPublisher - Archive test results for Maven artifact FMCDealerFramework:FMCDealerFramework:jar:0.0.1-SNAPSHOT generated by maven-surefire-plugin:test (default-test): target/surefire-reports/*.xml
[withMaven] junitPublisher - Jenkins JUnit Attachments Plugin not found, can't publish test attachments.Recording test results
[withMaven] Jenkins Task Scanner Plugin not found, don't display results of source code scanning for 'TODO' and 'FIXME' in pipeline screen.
[withMaven] Publishers: Pipeline Graph Publisher: 2 ms, Junit Publisher: 34 ms
[Pipeline] // withMaven
[Pipeline] }
[Pipeline] // stage
[Pipeline] }
[Pipeline] // timeout
[Pipeline] }
[Pipeline] // node
[Pipeline] End of Pipeline
ERROR: script returned exit code 1
Finished: FAILURE
Given you're running your test on a Linux box you need to use Linux chromedriver version
I.e. for Chrome 75: https://chromedriver.storage.googleapis.com/index.html?path=75.0.3770.140/
You should be using https://chromedriver.storage.googleapis.com/75.0.3770.140/chromedriver_linux64.zip
Make sure to make it executable by running chmod command like:
script {
sh 'chmod +x /var/jenkins_home/workspace/SeleniumTest/./lib/chromedriver'
}
However it should be easier to integrate WebDriverManager to automatically download the necessary version of the driver for your browser.
If your Linux machine doesn't have GUI you will also either need to setup Xvfb or add --headless key to your browser initialization routine.
More information: How to use Jenkins pipeline to launch Selenium tests
When i try to create new application i receive this message
yarn install v1.5.1
info No lockfile found.
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "source-map#0.6.1" is incompatible with
requested version "source-map#^0.5.6"
I am sorry, i was not precise enough in stating my problem.
So, as i said i receive this message while creating new application.
After the process of creating new application is over i execute this command
./mvnw package -Pprod dockerfile:build
And then this is what i see:
[INFO] Scanning for projects...
[INFO]
[INFO] ------------------------------------------------------------------
------
[INFO] Building Jhipster Test Project 0.0.1-SNAPSHOT
[INFO] ------------------------------------------------------------------
------
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (default-
resources) # jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:resources (default-resources) #
jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 3 resources
[INFO] Copying 15 resources
[INFO]
[INFO] --- maven-enforcer-plugin:3.0.0-M1:enforce (enforce-versions) #
jhipster-test-project ---
[INFO]
[INFO] --- maven-resources-plugin:3.0.1:copy-resources (docker-resources)
# jhipster-test-project ---
[INFO] Using 'UTF-8' encoding to copy filtered resources.
[INFO] Copying 2 resources
[INFO]
[INFO] --- jacoco-maven-plugin:0.7.9:prepare-agent (pre-unit-tests) #
jhipster-test-project ---
[INFO] argLine set to -javaagent:/home/igor/.m2/repository/org/jacoco/org.jacoco.agent/0.7.9/org.jacoco.agent-0.7.9-runtime.jar=destfile=/home/igor/JHipsterProjects/jhipster-test-project/target/test-results/coverage/jacoco/jacoco.exec -Djava.security.egd=file:/dev/./urandom -Xmx256m
[INFO]
[INFO] --- git-commit-id-plugin:2.2.4:revision (default) # jhipster-test-project ---
[INFO]
[INFO] --- spring-boot-maven-plugin:1.5.9.RELEASE:build-info (default) # jhipster-test-project ---
[INFO]
[INFO] --- frontend-maven-plugin:1.6:install-node-and-yarn (install node and yarn) # jhipster-test-project ---
[INFO] Installing node version v8.9.4
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/node/8.9.4/node-8.9.4-linux-x64.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/tmp
[INFO] Copying node binary from /home/igor/JHipsterProjects/jhipster-test-project/node/tmp/node-v8.9.4-linux-x64/bin/node to /home/igor/JHipsterProjects/jhipster-test-project/node/node
[INFO] Installed node locally.
[INFO] Installing Yarn version v1.3.2
[INFO] Unpacking /home/igor/.m2/repository/com/github/eirslett/yarn/1.3.2/yarn-1.3.2.tar.gz into /home/igor/JHipsterProjects/jhipster-test-project/node/yarn
[INFO] Installed Yarn locally.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (yarn install) # jhipster-test-project ---
[INFO] Running 'yarn install --force' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn install v1.3.2
[INFO] [1/5] Validating package.json...
[INFO] [2/5] Resolving packages...
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.5.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.1.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.4.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#0.5.x"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.7"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.5.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.2"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.6"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.5.0"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.3"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.5.1"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#~0.2.0"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.4"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.1.41"
[ERROR] warning Resolution field "source-map#0.6.1" is incompatible with requested version "source-map#^0.4.2"
[INFO] [3/5] Fetching packages...
[INFO] info fsevents#1.1.3: The platform "linux" is incompatible with this module.
[INFO] info "fsevents#1.1.3" is an optional dependency and failed compatibility check. Excluding it from installation.
[INFO] [4/5] Linking dependencies...
[ERROR] warning " > bootstrap#4.0.0" has unmet peer dependency
"popper.js#^1.12.9".
[INFO] [5/5] Rebuilding all packages...
[INFO] success Saved lockfile.
[INFO] $ node node_modules/phantomjs-prebuilt/install.js
[INFO] Found PhantomJS at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs ...verifying
[INFO] PhantomJS is previously installed at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
[INFO] Done in 9.71s.
[INFO]
[INFO] --- frontend-maven-plugin:1.6:yarn (webpack build prod) # jhipster-test-project ---
[INFO] yarn not inheriting proxy config from Maven
[INFO] Running 'yarn run webpack:prod' in /home/igor/JHipsterProjects/jhipster-test-project
[INFO] yarn run v1.3.2
[INFO] $ yarn run cleanup && yarn run webpack:prod:main && yarn run clean-www
[INFO] $ rimraf target/{aot,www}
[INFO] $ yarn run webpack -- --config webpack/webpack.prod.js --profile
[ERROR] warning From Yarn 1.0 onwards, scripts don't require "--" for options to be forwarded. In a future version, any explicit "--" will be forwarded as-is to the scripts.
[INFO] $ node --max_old_space_size=4096 node_modules/webpack/bin/webpack.js --config webpack/webpack.prod.js --profile
[INFO] MergetJsonsWebpackPlugin compilation started...
[INFO] MergetJsonsWebpackPlugin compilation completed...
[ERROR] buffer.js:202
[ERROR] throw new TypeError(kFromErrorMsg);
[ERROR] ^
[ERROR]
[ERROR] TypeError: First argument must be a string, Buffer, ArrayBuffer,
Array, or array-like object.
[ERROR] at Function.Buffer.from (buffer.js:202:9)
[ERROR] at new Buffer (buffer.js:158:17)
[ERROR] at writeOut (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:334:17)
[ERROR] at require.forEach (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:345:12)
[ERROR] at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3096:16
[ERROR] at eachOfArrayLike (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1055:9)
[ERROR] at eachOf (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:1103:5)
[ERROR] at Object.eachLimit (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/node_modules/async/dist/async.js:3158:5)
[ERROR] at emitFiles (/home/igor/JHipsterProjects/jhipster-test-project/node_modules/webpack/lib/Compiler.js:315:21)
[ERROR] at /home/igor/JHipsterProjects/jhipster-test-project/node_modules/mkdirp/index.js:30:20
[ERROR] at FSReqWrap.oncomplete (fs.js:135:15)
[ERROR] error Command failed with exit code 1.
enter code here[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for
documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[ERROR] error Command failed with exit code 1.
[INFO] info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 42.200 s
[INFO] Finished at: 2018-03-07T23:12:19+01:00
[INFO] Final Memory: 32M/397M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.6:yarn (webpack build prod) on project jhipster-test-project: Failed to run task: 'yarn run webpack:prod' failed. org.apache.commons.exec.ExecuteException: 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/confluence/display/MAVEN/MojoFailureException
So my question is what could be a problem?
This is fixed in JHipster 4.14.1, see https://github.com/jhipster/generator-jhipster/issues/7188
NPM version (npm --v): 5.4.2
Gulp version (gulp -v): CLI#1.4.0, Local#3.9.1
JHipster version: 4.6.1
Node version: 6.11.3
I'm unable to build a production package. Running the application completes without issues and the same goes for building a package with 'dev' profile.
For some reason when I run ".\mvnw -Pprod package" on the project's root directory I get this error:
[INFO] [17:15:22] Starting 'inject:vendor'...
[INFO] [17:15:22] Starting 'ngconstant:prod'...
[INFO] [17:15:22] Starting 'copy:languages'...
[ERROR] events.js:160
[ERROR] throw er; // Unhandled 'error' event
[ERROR] ^
[ERROR]
[ERROR] Error: File not found with singular glob: D:\GitHub\Agora\AgoraWeb\src\main\webapp\.htaccess
[ERROR] at Glob.<anonymous> (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\index.js:41:11)
[ERROR] at Glob.g (events.js:292:16)
[ERROR] at emitOne (events.js:96:13)
[ERROR] at Glob.emit (events.js:188:7)
[ERROR] at Glob._finish (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:172:8)
[ERROR] at done (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:159:12)
[ERROR] at Glob._processSimple2 (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:652:12)
[ERROR] at D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:640:10
[ERROR] at Glob._stat2 (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:736:12)
[ERROR] at lstatcb_ (D:\GitHub\Agora\AgoraWeb\node_modules\glob-stream\node_modules\glob\glob.js:728:12)
[ERROR] at RES (D:\GitHub\Agora\AgoraWeb\node_modules\inflight\inflight.js:31:16)
[ERROR] at f (D:\GitHub\Agora\AgoraWeb\node_modules\once\once.js:25:25)
[ERROR] at FSReqWrap.oncomplete (fs.js:123:15)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 25.257 s
[INFO] Finished at: 2017-10-02T17:15:22+02:00
[INFO] Final Memory: 38M/467M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:gulp (gulp build) on project agora: Failed to run task: 'gulp build --no-notification' failed. org.apache.commons.exec.ExecuteException: 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/confluence/display/MAVEN/MojoFailureException
I understand what it's telling me, I'm missing the .htaccess file but I never needed it before. I recently moved the project from my main drive to the backup drive and since then I can't generate a production package.
If I create an empty ".htaccess" where gulp needs it I get this other error:
[INFO] [17:21:43] Finished 'inject:app' after 2.94 s
[INFO] [17:21:43] Starting 'inject:troubleshoot'...
[INFO] [17:21:43] 'inject:troubleshoot' errored after 1.01 ms
[INFO] [17:21:43] Error: Invalid glob argument:
[INFO] at Gulp.src (D:\GitHub\Agora\AgoraWeb\node_modules\vinyl-fs\lib\src\index.js:32:11)
[INFO] at Gulp.troubleshoot (D:\GitHub\Agora\AgoraWeb\gulp\inject.js:61:27)
[INFO] at module.exports (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:34:7)
[INFO] at Gulp.Orchestrator._runTask (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:273:3)
[INFO] at Gulp.Orchestrator._runStep (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:214:10)
[INFO] at Gulp.Orchestrator.start (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:134:8)
[INFO] at runNextSet (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:123:15)
[INFO] at Gulp.onTaskEnd (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:101:4)
[INFO] at emitOne (events.js:101:20)
[INFO] at Gulp.emit (events.js:188:7)
[INFO] at Gulp.Orchestrator._emitTaskDone (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:264:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:275:23
[INFO] at finish (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:21:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:52:4
[INFO] at f (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\once\once.js:17:25)
[INFO] at DestroyableTransform.onend (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\end-of-stream\index.js:31:18)
[INFO] [17:21:43] 'build' errored after 3.98 s
[INFO] [17:21:43] Error in plugin 'run-sequence(inject:troubleshoot)'
[INFO] Message:
[INFO] Invalid glob argument:
[INFO] Stack:
[INFO] Error: Invalid glob argument:
[INFO] at Gulp.src (D:\GitHub\Agora\AgoraWeb\node_modules\vinyl-fs\lib\src\index.js:32:11)
[INFO] at Gulp.troubleshoot (D:\GitHub\Agora\AgoraWeb\gulp\inject.js:61:27)
[INFO] at module.exports (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:34:7)
[INFO] at Gulp.Orchestrator._runTask (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:273:3)
[INFO] at Gulp.Orchestrator._runStep (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:214:10)
[INFO] at Gulp.Orchestrator.start (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:134:8)
[INFO] at runNextSet (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:123:15)
[INFO] at Gulp.onTaskEnd (D:\GitHub\Agora\AgoraWeb\node_modules\run-sequence\index.js:101:4)
[INFO] at emitOne (events.js:101:20)
[INFO] at Gulp.emit (events.js:188:7)
[INFO] at Gulp.Orchestrator._emitTaskDone (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:264:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\index.js:275:23
[INFO] at finish (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:21:8)
[INFO] at D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\lib\runTask.js:52:4
[INFO] at f (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\once\once.js:17:25)
[INFO] at DestroyableTransform.onend (D:\GitHub\Agora\AgoraWeb\node_modules\orchestrator\node_modules\end-of-stream\index.js:31:18)
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 17.220 s
[INFO] Finished at: 2017-10-02T17:21:43+02:00
[INFO] Final Memory: 36M/367M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.4:gulp (gulp build) on project agora: Failed to run task: 'gulp build --no-notification' failed. org.apache.commons.exec.ExecuteException: 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/confluence/display/MAVEN/MojoFailureException
(Sorry for the long logs)
I have tried many things, including the full deletion of the repo and cloning it again. I've also tried clearing NPM's cache as advised in this answer. At this point I don't know what else to try.
Thanks !!
I have solved this problem. Gaël Marziou put me in the right track to investigate conflicting versions of node or gulp.
After testing various versions of node, both local and global I tried disabling gulp tasks one by one, none of them helped me really even though the error messages did change. So I tried messing with gulp versions, and that was the answer.
I solved my problem by changing the following line in my package.json:
"gulp": "^3.9.1",
to this:
"gulp": "3.9.1",
And now everything builds perfectly.
Thank you very much :)
I am trying to build apache zeppelin using the instructions in this tutorial : Installing Zeppelig Tutorial
I installed spark 2.0 and maven 3.3.9 the latest versions. I used the following command to build zeppelin:
sudo mvn clean package -DskipTests -Psparkr -Ppyspark -Pspark-2.0 -Dflink
I got this error:
[ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin
/zeppelin-web/node_modules/grunt-jscs/node_modules/jscs requires lodash#'~3.10.0' but will load
[ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/grunt-jscs/node_modules/lodash,
[ERROR] npm WARN unmet dependency which is version 4.6.1
[ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/karma-coverage/node_modules/istanbul/node_modules/handlebars requires source-map#'^0.4.4' but will load
[ERROR] npm WARN unmet dependency /home/parallels/incubator-zeppelin/zeppelin-web/node_modules/karma-coverage/node_modules/source-map,
[ERROR] npm WARN unmet dependency which is version 0.5.6
[INFO]
[INFO] --- frontend-maven-plugin:0.0.25:bower (bower install) # zeppelin-web ---
[INFO] Running 'bower --allow-root install' in /home/parallels/incubator-zeppelin/zeppelin-web
[ERROR] module.js:338
[ERROR] throw err;
[ERROR] ^
[ERROR] Error: Cannot find module 'q'
[ERROR] at Function.Module._resolveFilename (module.js:336:15)
[ERROR] at Function.Module._load (module.js:278:25)
[ERROR] at Module.require (module.js:365:17)
[ERROR] at require (module.js:384:17)
[ERROR] at Object.<anonymous> (/home/parallels/incubator-zeppelin/zeppelin-web/node_modules/bower/bin/bower:6:9)
[ERROR] at Module._compile (module.js:460:26)
[ERROR] at Object.Module._extensions..js (module.js:478:10)
[ERROR] at Module.load (module.js:355:32)
[ERROR] at Function.Module._load (module.js:310:12)
[ERROR] at Function.Module.runMain (module.js:501:10)
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary:
[INFO]
[INFO] Zeppelin ........................................... SUCCESS [ 3.333 s]
[INFO] Zeppelin: Interpreter .............................. SUCCESS [ 12.493 s]
[INFO] Zeppelin: Zengine .................................. SUCCESS [ 7.460 s]
[INFO] Zeppelin: Display system apis ...................... SUCCESS [ 16.886 s]
[INFO] Zeppelin: Spark dependencies ....................... SUCCESS [ 33.212 s]
[INFO] Zeppelin: Spark .................................... SUCCESS [ 25.951 s]
[INFO] Zeppelin: Markdown interpreter ..................... SUCCESS [ 0.387 s]
[INFO] Zeppelin: Angular interpreter ...................... SUCCESS [ 0.223 s]
[INFO] Zeppelin: Shell interpreter ........................ SUCCESS [ 0.287 s]
[INFO] Zeppelin: Livy interpreter ......................... SUCCESS [ 0.520 s]
[INFO] Zeppelin: HBase interpreter ........................ SUCCESS [ 3.979 s]
[INFO] Zeppelin: PostgreSQL interpreter ................... SUCCESS [ 0.488 s]
[INFO] Zeppelin: JDBC interpreter ......................... SUCCESS [ 0.694 s]
[INFO] Zeppelin: File System Interpreters ................. SUCCESS [ 0.766 s]
[INFO] Zeppelin: Flink .................................... SUCCESS [ 7.653 s]
[INFO] Zeppelin: Apache Ignite interpreter ................ SUCCESS [ 0.871 s]
[INFO] Zeppelin: Kylin interpreter ........................ SUCCESS [ 0.334 s]
[INFO] Zeppelin: Python interpreter ....................... SUCCESS [ 0.337 s]
[INFO] Zeppelin: Lens interpreter ......................... SUCCESS [ 2.984 s]
[INFO] Zeppelin: Apache Cassandra interpreter ............. SUCCESS [01:00 min]
[INFO] Zeppelin: Elasticsearch interpreter ................ SUCCESS [ 6.269 s]
[INFO] Zeppelin: BigQuery interpreter ..................... SUCCESS [ 0.833 s]
[INFO] Zeppelin: Alluxio interpreter ...................... SUCCESS [ 3.350 s]
[INFO] Zeppelin: web Application .......................... FAILURE [ 3.653 s]
[INFO] Zeppelin: Server ................................... SKIPPED
[INFO] Zeppelin: Packaging distribution ................... SKIPPED
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:14 min
[INFO] Finished at: 2016-09-06T19:09:29+01:00
[INFO] Final Memory: 164M/479M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:0.0.25:bower (bower install) on project zeppelin-web: Failed to run task: 'bower --allow-root install' failed. (error code 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/confluence/display/MAVEN/MojoFailureException
[ERROR]
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR] mvn <goals> -rf :zeppelin-web
There is another thread on stackoverflow with the same error and #dirceusemighini suggests to cd to zeppelin-web and run the following command. The reason i created another question is because i am a new stack user and it wont let me comment to that question.
./bower install
I have tried that and i got the following error:
module.js:338
throw err;
^
Error: Cannot find module 'q'
at Function.Module._resolveFilename (module.js:336:15)
at Function.Module._load (module.js:278:25)
at Module.require (module.js:365:17)
at require (module.js:384:17)
at Object.<anonymous> (/home/parallels/incubator-zeppelin/zeppelin-web/node_modules/bower/bin/bower:6:9)
at Module._compile (module.js:460:26)
at Object.Module._extensions..js (module.js:478:10)
at Module.load (module.js:355:32)
at Function.Module._load (module.js:310:12)
at Function.Module.runMain (module.js:501:10)
parallels#ubuntu:~/incubator-zeppelin/zeppelin-web$
I have already unistall node, nodejs and npm and i reinstalled them globally
node -v : 5.0.0
npm -v : 3.3.6
bower -v: 1.7.9
Any suggestions??
The problem for me was Maven installation. I uninstall Maven and i reinstall it manually to /usr/local/apache-maven/
Then using a text editor i set the environment variables and re-run the build. Build was successful now. I don't know the actual cause of that but at the end it works..
gedit ~/.bashrc
export M2_HOME=/usr/local/apache-maven/apache-maven-3.3.9
export PATH=${M2_HOME}/bin:${PATH}
Run the build:
mvn clean package -DskipTests