Setting up Kibana dev environment yields error 800A1391

UPDATE 2: Unfortunately, it doesn't work on my other computer either. While elasticsearch boots just fine, kibana.bat gives an "Unable to find usable node.js executable" message on boot. Though I know it's dangerous, I think I am just going to try to develop on the production version of Kibana from the Elastic website. Should I submit a bug request about this?

UPDATE 1: I went into the kibana\packages\kbn-babel-preset\node.js file & got rid of some of the commas at the end of lists/dictionary objects, which fixed the 800A0404 error, but caused another:

Script: C:\Users\super\OneDrive\Documents\kibana\packages\kbn-babel-preset\node.js
Line: 1
Char: 1
Error: 'module' is undefined
Code: 800A1391
Source: Microsoft JScript runtime error

Dismissing this popup allows the bootstrap to continue until hitting the eslint-import-resolver-kibana directory:

Installing dependencies in [@kbn/eslint-import-resolver-kibana]:

[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check.
Excluding it from installation.
[3/4] Linking dependencies...
warning " > eslint-import-resolver-webpack@0.8.4" has unmet peer dependency "esl
int-plugin-import@>=1.4.0".
[4/4] Building fresh packages...
[1/1] ⠈ uglifyjs-webpack-plugin
[-/1] ⠈ waiting...
[-/1] ⠈ waiting...
[-/1] ⠈ waiting...
error C:\Users\super\Documents\kibana\packages\kbn-eslint-import-resolver-kibana
\node_modules\uglifyjs-webpack-plugin: Command failed.
Exit code: 1
Command: node lib/post_install.js
Arguments:
Directory: C:\Users\super\Documents\kibana\packages\kbn-eslint-import-resolver-k
ibana\node_modules\uglifyjs-webpack-plugin
Output:
module.js:549
    throw err;
    ^

Error: Cannot find module 'C:\Users\super\Documents\kibana\packages\kbn-eslint-i
mport-resolver-kibana\node_modules\uglifyjs-webpack-plugin\lib\post_install.js'
    at Function.Module._resolveFilename (module.js:547:15)
    at Function.Module._load (module.js:474:25)
    at Function.Module.runMain (module.js:693:10)

[bootstrap] failed:

Error: Command failed: yarn install --non-interactive --mutex file
    at makeError (C:\Users\super\Documents\kibana\packages\kbn-pm\dist\index.js:
38964:9)
    at Promise.all.then.arr (C:\Users\super\Documents\kibana\packages\kbn-pm\dis
t\index.js:39069:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Once again: any advice is greatly appreciated!

ORIGINAL: Hello all, thank you for having me here on the Elastic Discourse forums. I am relatively new to development in Kibana & wanted to make some new application plugins for the platform. I have been following this guide here to set up my development environment, but have run into a couple problems that I hadn't had before.

I only just recently started getting the following popup error from the Windows Script Host on running the yarn kbn bootstrap command in the cloned kibana directory:

Script: C:\Users\super\OneDrive\Documents\kibana\packages\kbn-babel-preset\node.js
Line: 13
Char: 9
Error: Expected identifier, string or number
Code: 800A0404
Source: Microsoft JScript compilation error

After clicking OK to dismiss this popup, here is what appears in the shell:

super@DESKTOP MINGW64 ~/OneDrive/Documents/kibana (master)
$ yarn kbn bootstrap
yarn run v1.6.0
$ node scripts/kbn bootstrap
Running [bootstrap] command from [C:\Users\super\OneDrive\Documents\kibana]:

Found [16] projects:

kibana
├── packages
│   ├── eslint-config-kibana (@elastic/eslint-config-kibana)
│   ├── eslint-plugin-kibana-custom (@elastic/eslint-plugin-kibana-custom)
│   ├── kbn-babel-preset (@kbn/babel-preset)
│   ├── kbn-datemath (@kbn/datemath)
│   ├── kbn-dev-utils (@kbn/dev-utils)
│   ├── kbn-es (@kbn/es)
│   ├── kbn-eslint-import-resolver-kibana (@kbn/eslint-import-resolver-kibana)
│   ├── kbn-eslint-plugin-license-header (@kbn/eslint-plugin-license-header)
│   ├── kbn-plugin-generator (@kbn/plugin-generator)
│   ├── kbn-plugin-helpers (@kbn/plugin-helpers)
│   ├── kbn-pm (@kbn/pm)
│   ├── kbn-system-loader (@kbn/system-loader)
│   ├── kbn-test-subj-selector (@kbn/test-subj-selector)
│   └── kbn-ui-framework (@kbn/ui-framework)
└── x-pack

Running installs in topological order:


Installing dependencies in [@kbn/babel-preset]:


[bootstrap] failed:

Error: Command failed: yarn install --non-interactive --mutex file
    at makeError (C:\Users\super\OneDrive\Documents\kibana\packages\kbn-pm\dist\
index.js:38964:9)
    at Promise.all.then.arr (C:\Users\super\OneDrive\Documents\kibana\packages\k
bn-pm\dist\index.js:39069:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

I figured since the script host mentioned JScript compilation that un-/reinstalling Java would help, so I tried that in addition to un-/reinstalling Node.js and Yarn, but to no avail. Any advice is greatly appreciated.

What version of node are you running? There is a .node-version file which describes the version for the branch.

Thank you for your response. I am running Node.js v.8.11.0 for Windows, verified with node --version.

You shouldn't have to modify any code to get this to run.

Can you run yarn kbn clean then yarn kbn bootstrap?

Sadly, I encountered the same error after running yarn kbn clean...

I am going to try uninstalling Java, cleaning the cache, and then reinstalling to see where it is at then. The JScript compile/runtime errors seem to point to Java being the problem and, after removing the stray commas from the kibana/packages/kbn-babel-preset/node.js file again, the setup for eslint-import-resolver-kibana completes fine on a separate computer. Will comment with my update shortly after.

Just to clarify, you're re-installing Node not Java.

Reinstalling is good bet, and also ensure that your running the correct version of node in the context of running yarn kbn bootstrap.

I originally meant Java, but I tried both just in case, as well as a system restore to April 23rd, and then an upgrade to Java 10.0.1. Still the same error, but with something having changed from the previous; the error message now contains a location while installing dependencies in [@kbn/eslint-import-resolver-kibana]:

[4/4] Building fresh packages...
[1/1] ⠠ uglifyjs-webpack-plugin:     at bootstrap_node.js:609:3
[-/1] ⠠ waiting...
[-/1] ⠠ waiting...
[-/1] ⠠ waiting...
error C:\Users\super\Documents\kibana\packages\kbn-eslint-import-resolver-kibana
\node_modules\uglifyjs-webpack-plugin: Command failed.

And the rest is the same as in previous posts.

I got this to work on two other computers (bar the above comma-removing mentioned in previous posts) so I honestly am stumped.

Tried to set this up with Kibana 6.2.3 from previous releases on Elastic's Github & got the same exact error while running node.js 6.12.2, as recommended in that release's .nodeversion file:

super@DESKTOP-77ACJSC MINGW64 ~/Downloads/kibana-6.2.3/kibana-6.2.3
$ yarn
yarn install v1.6.0
[1/5] Validating package.json...
[2/5] Resolving packages...
[3/5] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info fsevents@1.1.3: The platform "win32" is incompatible with this module.
info "fsevents@1.1.3" is an optional dependency and failed compatibility check.
Excluding it from installation.
[4/5] Linking dependencies...
warning " > react-anything-sortable@1.7.3" has incorrect peer dependency "react@
^0.14.0 || ^15.0.0".
warning " > react-anything-sortable@1.7.3" has incorrect peer dependency "react-
dom@^0.14.0 || ^15.0.0".
warning " > grunt-angular-translate@0.3.0" has incorrect peer dependency "grunt@
~0.4.0".
[5/5] Building fresh packages...
[1/7] ⡀ uglifyjs-webpack-plugin:     at bootstrap_node.js:496:3
[2/7] ⡀ dtrace-provider:     at bootstrap_node.js:496:3
[3/7] ⡀ chromedriver
[4/7] ⡀ husky
warning Error running install script for optional dependency: "C:\\Users\\super\
\Downloads\\kibana-6.2.3\
ode_modules\\dtrace-provider: Command failed.
Exit code: 1
Command: node scripts/install.js
Arguments:
Directory: C:\\Users\\super\\Downloads\\kibana-6.2.3\
ode_modules\\dtrace-provider
Output:
module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\\Users\\super\\Downloads\\kibana-6.2.3\
ode_modules\\dtrace-provider\\scripts\\install.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)
    at startup (bootstrap_node.js:149:9)
    at bootstrap_node.js:496:3"
info This module is OPTIONAL, you can safely ignore this error
error C:\Users\super\Downloads\kibana-6.2.3\node_modules\uglifyjs-webpack-plugin
: Command failed.
Exit code: 1
Command: node lib/post_install.js
Arguments:
Directory: C:\Users\super\Downloads\kibana-6.2.3\node_modules\uglifyjs-webpack-p
lugin
Output:
module.js:471
    throw err;
    ^

Error: Cannot find module 'C:\Users\super\Downloads\kibana-6.2.3\node_modules\ug
lifyjs-webpack-plugin\lib\post_install.js'
    at Function.Module._resolveFilename (module.js:469:15)
    at Function.Module._load (module.js:417:25)
    at Module.runMain (module.js:604:10)
    at run (bootstrap_node.js:383:7)

I'm just going to do my developing on my old computer at this point :stuck_out_tongue:

Update: Unfortunately, it doesn't work on my other computer either. While elasticsearch boots just fine, kibana.bat gives an "Unable to find usable node.js executable" message on boot. Though I know it's dangerous, I think I am just going to try to develop on the production version of Kibana from the Elastic website. Should I submit a bug request about this?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.