Issue when installing ExperienceBuilder

745
1
Jump to solution
07-21-2020 06:04 PM
XiaoliQin
New Contributor

I am installing Experience Builder, follow the instruction at: https://developers.arcgis.com/experience-builder/guide/install-guide/ , but keep getting error. Please help! See attached error message from npm-debug.log:

info it worked if it ends with ok
1 verbose cli [
1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
1 verbose cli   'C:\\ProgramData\\Microsoft\\VisualStudio\\MDA\\cba6b54a\\taco-toolset-6.3.1\\node_modules\\npm\\bin\\npm-cli.js',
1 verbose cli   'start'
1 verbose cli ]
2 info using npm@2.15.10
3 info using node@v14.5.0
4 verbose run-script [ 'prestart''start''poststart' ]
5 info prestart exb-server@0.1.0
6 info start exb-server@0.1.0
7 verbose unsafe-perm in lifecycle true
8 info exb-server@0.1.0 Failed to exec start script
9 verbose stack Error: exb-server@0.1.0 start: `cross-env NODE_ENV=production node src/server`
9 verbose stack Exit status 1
9 verbose stack     at EventEmitter.<anonymous> (C:\ProgramData\Microsoft\VisualStudio\MDA\cba6b54a\taco-toolset-6.3.1\node_modules\npm\lib\utils\lifecycle.js:217:16)
9 verbose stack     at EventEmitter.emit (events.js:314:20)
9 verbose stack     at ChildProcess.<anonymous> (C:\ProgramData\Microsoft\VisualStudio\MDA\cba6b54a\taco-toolset-6.3.1\node_modules\npm\lib\utils\spawn.js:24:14)
9 verbose stack     at ChildProcess.emit (events.js:314:20)
9 verbose stack     at maybeClose (internal/child_process.js:1051:16)
9 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:287:5)
10 verbose pkgid exb-server@0.1.0
11 verbose cwd C:\eb\server
12 error Windows_NT 10.0.18363
13 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\ProgramData\\Microsoft\\VisualStudio\\MDA\\cba6b54a\\taco-toolset-6.3.1\\node_modules\\npm\\bin\\npm-cli.js" "start"
14 error node v14.5.0
15 error npm  v2.15.10
16 error code ELIFECYCLE
17 error exb-server@0.1.0 start: `cross-env NODE_ENV=production node src/server`
17 error Exit status 1
18 error Failed at the exb-server@0.1.0 start script 'cross-env NODE_ENV=production node src/server'.
18 error This is most likely a problem with the exb-server package,
18 error not with npm itself.
18 error Tell the author that this fails on your system:
18 error     cross-env NODE_ENV=production node src/server
18 error You can get information on how to open an issue for this project with:
18 error     npm bugs exb-server
18 error Or if that isn't available, you can get their info via:
18 error
18 error     npm owner ls exb-server
18 error There is likely additional logging output above.
19 verbose exit [ 1true ]

Thanks!

0 Kudos
1 Solution

Accepted Solutions
XiaoliQin1
New Contributor

I figured out solution to my own question. To answer it to myself, and to those may encounter the same issue with me, post solution here.

In this document https://developers.arcgis.com/experience-builder/guide/install-guide Step 8, instruct to run npm ci. Acutally, if you don't have npm ci avaliable on your machine, run npm ci will do nothing. So to new user like me, this document should add a note to guide user to install npm ci properly before go to Step 9. Otherwise, if run npm ci fail (actually, nothing happen), then running npm start (Step 9) will generate errors I posted above.

I did this: After Step 7, 

1. Run npm install -g npm @latest under /server folder

2. Follow Step 8: npm ci

3. Follow Step 9: npm start

Follow therest of the document.

Hope this is helpful.

View solution in original post

0 Kudos
1 Reply
XiaoliQin1
New Contributor

I figured out solution to my own question. To answer it to myself, and to those may encounter the same issue with me, post solution here.

In this document https://developers.arcgis.com/experience-builder/guide/install-guide Step 8, instruct to run npm ci. Acutally, if you don't have npm ci avaliable on your machine, run npm ci will do nothing. So to new user like me, this document should add a note to guide user to install npm ci properly before go to Step 9. Otherwise, if run npm ci fail (actually, nothing happen), then running npm start (Step 9) will generate errors I posted above.

I did this: After Step 7, 

1. Run npm install -g npm @latest under /server folder

2. Follow Step 8: npm ci

3. Follow Step 9: npm start

Follow therest of the document.

Hope this is helpful.

0 Kudos