when i use npm run build -- --skip-os-packages
i got the problem
Running "run:optimizeBuild" (run) task
Warning: spawn EACCES Use --force to continue.
Aborted due to warnings.
npm ERR! Linux 3.10.0-514.26.2.el7.x86_64
npm ERR! argv "/root/.nvm/versions/node/v6.10.2/bin/node" "/root/.nvm/versions/node/v6.10.2/bin/npm" "run" "build" "--" "--skip-os-packages"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! kibana@5.5.0 build: grunt build "--skip-os-packages"
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the kibana@5.5.0 build script 'grunt build "--skip-os-packages"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the kibana package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt build "--skip-os-packages"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs kibana
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls kibana
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/kibana/npm-debug.log.
are there some suggestions?
Someone said delete the node_modules and npm install again
i execute it but the problem still exists .
this is npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v6.10.2/bin/node',
1 verbose cli '/root/.nvm/versions/node/v6.10.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--',
1 verbose cli '--skip-os-packages' ]
2 info using npm@3.10.10
3 info using node@v6.10.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle kibana@5.5.0~prebuild: kibana@5.5.0
6 silly lifecycle kibana@5.5.0~prebuild: no script for prebuild, continuing
7 info lifecycle kibana@5.5.0~build: kibana@5.5.0
8 verbose lifecycle kibana@5.5.0~build: unsafe-perm in lifecycle true
9 verbose lifecycle kibana@5.5.0~build: PATH: /root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/usr/kibana/node_modules/.bin:/usr/java/jdk1.8.0_111/bin:/root
/.nvm/versions/node/v6.10.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/hadoop/sbin:/usr/local/hadoop/bin:/root/bin
10 verbose lifecycle kibana@5.5.0~build: CWD: /usr/kibana
11 silly lifecycle kibana@5.5.0~build: Args: [ '-c', 'grunt build "--skip-os-packages"' ]
12 silly lifecycle kibana@5.5.0~build: Returned: code: 3 signal: null
13 info lifecycle kibana@5.5.0~build: Failed to exec build script
14 verbose stack Error: kibana@5.5.0 build: grunt build "--skip-os-packages"
14 verbose stack Exit status 3
14 verbose stack at EventEmitter. (/root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid kibana@5.5.0
16 verbose cwd /usr/kibana
17 error Linux 3.10.0-514.26.2.el7.x86_64
18 error argv "/root/.nvm/versions/node/v6.10.2/bin/node" "/root/.nvm/versions/node/v6.10.2/bin/npm" "run" "build" "--" "--skip-os-packages"
19 error node v6.10.2
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error Exit status 3
23 error Failed at the kibana@5.5.0 build script 'grunt build "--skip-os-packages"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the kibana package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error grunt build "--skip-os-packages"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs kibana
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls kibana
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
hey i listened to you.beacuse i use the centos7.
i use yum install ruby-devel
and gem install fpm -v 1.5.0 gem install pleaserun -v 0.0.24.
but the problem still exists.
Running "run:optimizeBuild" (run) task
Warning: spawn EACCES Use --force to continue.
Aborted due to warnings.
npm ERR! Linux 3.10.0-514.26.2.el7.x86_64
npm ERR! argv "/root/.nvm/versions/node/v6.10.2/bin/node" "/root/.nvm/versions/node/v6.10.2/bin/npm" "run" "build" "--" "--skip-os-packages"
npm ERR! node v6.10.2
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! kibana@5.5.0 build: grunt build "--skip-os-packages"
npm ERR! Exit status 3
npm ERR!
npm ERR! Failed at the kibana@5.5.0 build script 'grunt build "--skip-os-packages"'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the kibana package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! grunt build "--skip-os-packages"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs kibana
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls kibana
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /usr/kibana/npm-debug.log npm-debug.log:
0 info it worked if it ends with ok
1 verbose cli [ '/root/.nvm/versions/node/v6.10.2/bin/node',
1 verbose cli '/root/.nvm/versions/node/v6.10.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--',
1 verbose cli '--skip-os-packages' ]
2 info using npm@3.10.10
3 info using node@v6.10.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle kibana@5.5.0~prebuild: kibana@5.5.0
6 silly lifecycle kibana@5.5.0~prebuild: no script for prebuild, continuing
7 info lifecycle kibana@5.5.0~build: kibana@5.5.0
8 verbose lifecycle kibana@5.5.0~build: unsafe-perm in lifecycle true
9 verbose lifecycle kibana@5.5.0~build: PATH: /root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/usr/kibana/node_modules/.bin:/usr/java/jdk1.8.0_111/bin:/root
/.nvm/versions/node/v6.10.2/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/usr/local/hadoop/sbin:/usr/local/hadoop/bin:/root/bin
10 verbose lifecycle kibana@5.5.0~build: CWD: /usr/kibana
11 silly lifecycle kibana@5.5.0~build: Args: [ '-c', 'grunt build "--skip-os-packages"' ]
12 silly lifecycle kibana@5.5.0~build: Returned: code: 3 signal: null
13 info lifecycle kibana@5.5.0~build: Failed to exec build script
14 verbose stack Error: kibana@5.5.0 build: grunt build "--skip-os-packages"
14 verbose stack Exit status 3
14 verbose stack at EventEmitter. (/root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/lifecycle.js:255:16)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at EventEmitter.emit (events.js:191:7)
14 verbose stack at ChildProcess. (/root/.nvm/versions/node/v6.10.2/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:106:13)
14 verbose stack at ChildProcess.emit (events.js:191:7)
14 verbose stack at maybeClose (internal/child_process.js:886:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
15 verbose pkgid kibana@5.5.0
16 verbose cwd /usr/kibana
17 error Linux 3.10.0-514.26.2.el7.x86_64
18 error argv "/root/.nvm/versions/node/v6.10.2/bin/node" "/root/.nvm/versions/node/v6.10.2/bin/npm" "run" "build" "--" "--skip-os-packages"
19 error node v6.10.2
20 error npm v3.10.10
21 error code ELIFECYCLE
22 error Exit status 3
23 error Failed at the kibana@5.5.0 build script 'grunt build "--skip-os-packages"'.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the kibana package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error grunt build "--skip-os-packages"
23 error You can get information on how to open an issue for this project with:
23 error npm bugs kibana
23 error Or if that isn't available, you can get their info via:
23 error npm owner ls kibana
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]
The paths contained in the error message indicate that at least parts of the build process have been executed as root. The spawn EACCES indicates that a permission problem is present. Please make sure that the Kibana source directory and all files and directories therein are owned and writable by the user used to run the npm build command.
I just tried to reproduce your problem with a clean clone of Kibana 5.5.0, but it worked fine for me. So we need to find which file causes the permission error. Can you take a look at the permissions of ./build/kibana/bin/kibana?
i mainly translate the contents of the kibana for chinese. All changes are on the /src.
So i have tried to move /src to a new clean clone of kibana 5.5.0.This raises the above problem.
The binaries in the ./build/kibana/bin/kibana directory seem to be missing the execute permissions. This is what it looks like in a working build for me:
$ ls -l build/kibana/bin
-rwxr-xr-x 1 user users 632 Sep 11 12:37 kibana
-rw-r--r-- 1 user users 507 Sep 11 12:37 kibana.bat
-rwxr-xr-x 1 user users 639 Sep 11 12:37 kibana-plugin
-rw-r--r-- 1 user users 514 Sep 11 12:37 kibana-plugin.bat
The permission bits need to be preserved when copying. Depending on the tools and filesystems used that might not always be the case.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.