Hi! iwas trying to create kibana rpm package "npm run build -- --rpm", and ran into this issue.
Fatal error: Path must be a string. Received true
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kibana@6.0.0-alpha2 build: grunt build "--rpm"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@6.0.0-alpha2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/farya/.npm/_logs/2017-05-31T10_36_12_445Z-debug.log
i did try upgarding my babel-core@6.10.4 but that agin didnt help me out.
$ npm run build -- --rpm
kibana@6.0.0-alpha2 build /home/farya/kibana
grunt build "--rpm"
Running "build" task
Running "clean:build" (clean) task
1 path cleaned.
Running "clean:target" (clean) task
0 paths cleaned.
Running "_build:downloadNodeBuilds" task
Downloading darwin-x86_64 and corresponding sha
Downloading linux-x86_64 and corresponding sha
Downloading windows-x86_64 and corresponding sha
darwin-x86_64 downloaded and verified
linux-x86_64 downloaded and verified
windows-x86_64 downloaded and verified
Running "_build:extractNodeBuilds" task
Running "copy:devSource" (copy) task
Created 483 directories, copied 2032 files
Running "clean:devSourceForTestbed" (clean) task
1 path cleaned.
Running "babel:build" (babel) task
Running "_build:babelOptions" task
Running "_build:plugins" task
Running "_build:data" task
Running "i18nextract:default_options" (i18nextract) task
Create file: build/i18n_extract/en.json
Statistics : empty: 47 (100%) / Updated: 0 / Deleted: 0 / New: 47
Running "_build:check" task
Running "_build:packageJson" task
Running "_build:readme" task
Running "_build:babelCache" task
Running "_build:installNpmDeps" task
Running "_build:notice" task
Fatal error: Path must be a string. Received true
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! kibana@6.0.0-alpha2 build: grunt build "--rpm"
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the kibana@6.0.0-alpha2 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/farya/.npm/_logs/2017-06-01T12_59_41_662Z-debug.log
here is the log file o/p:
0 info it worked if it ends with ok
1 verbose cli [ '/home/farya/.nvm/versions/node/v6.10.2/bin/node',
1 verbose cli '/home/farya/.nvm/versions/node/v6.10.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'build',
1 verbose cli '--',
1 verbose cli '--rpm' ]
2 info using npm@4.6.1
3 info using node@v6.10.2
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle kibana@6.0.0-alpha2~prebuild: kibana@6.0.0-alpha2
6 silly lifecycle kibana@6.0.0-alpha2~prebuild: no script for prebuild, continuing
7 info lifecycle kibana@6.0.0-alpha2~build: kibana@6.0.0-alpha2
8 verbose lifecycle kibana@6.0.0-alpha2~build: unsafe-perm in lifecycle true
9 verbose lifecycle kibana@6.0.0-alpha2~build: PATH: /home/farya/.nvm/versions/node/v6.10.2/lib/node_modules/npm/bin/node-gyp-bin:/home/farya/kibana/node_modules/.bin:/home/farya/.nvm/versions/node/v6.10.2/bin:/usr/lib64/qt-3.3/bin:/usr/local/bin:/usr/bin:/usr/local/sbin:/usr/sbin:/home/farya/.local/bin:/home/farya/bin:/home/farya/.nvm/versions/node/v6.10.2/bin/grunt
10 verbose lifecycle kibana@6.0.0-alpha2~build: CWD: /home/farya/kibana
11 silly lifecycle kibana@6.0.0-alpha2~build: Args: [ '-c', 'grunt build "--rpm"' ]
12 silly lifecycle kibana@6.0.0-alpha2~build: Returned: code: 1 signal: null
13 info lifecycle kibana@6.0.0-alpha2~build: Failed to exec build script
14 verbose stack Error: kibana@6.0.0-alpha2 build: grunt build "--rpm"
14 verbose stack Exit status 1
i also tried to edit tasks/build/notice.js by adding console.log({ kibanaDir, noticePath }); after line 22 where noticePath is initialized and the ran npm run build -- --rpm but again i ran into same issue