question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Unable to run demo

See original GitHub issue

Hi, I am trying to run the demo but hitting an error. I am on windows 10 and ran my cmd program as administrator. Don’t think I have missed a step so some help would be appreciated. Thanks!

Here are the steps I followed…

  1. Cloned the repo
  2. Ran “npm install” in the root.
  3. Ran “npm build” in the root
  4. Made a copy of the sameple-config.js in the /demo/public folder and renamed it to config.js with my own firebase config settings which I got when I clicked web setup in my project’s firebase console.
  5. Went back to root folder and ran “npm run demo”

This is when I hit the error. Here is the npm-debug log

0 info it worked if it ends with ok 1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’, 1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’, 1 verbose cli ‘run’, 1 verbose cli ‘demo’ ] 2 info using npm@3.10.9 3 info using node@v6.9.2 4 verbose run-script [ ‘predemo’, ‘demo’, ‘postdemo’ ] 5 info lifecycle firebaseui@0.0.0~predemo: firebaseui@0.0.0 6 silly lifecycle firebaseui@0.0.0~predemo: no script for predemo, continuing 7 info lifecycle firebaseui@0.0.0~demo: firebaseui@0.0.0 8 verbose lifecycle firebaseui@0.0.0~demo: unsafe-perm in lifecycle true 9 verbose lifecycle firebaseui@0.0.0~demo: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\sunny\Downloads\firebaseui-web-master\node_modules.bin;C:\Program Files\ConEmu\ConEmu\Scripts;C:\Program Files\ConEmu;C:\Program Files\ConEmu\ConEmu;C:\ProgramData\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0;C:\Program Files (x86)\GitExtensions;C:\Android\sdk;C:\Android\sdk\platform-tools;C:\Android\sdk\tools;C:\OpenSSL\bin;C:\Program Files (x86)\Skype\Phone;C:\Program Files (x86)\Git\bin;C:\Python27;C:\Program Files\nodejs;C:\Users\sunny\AppData\Local\Microsoft\WindowsApps;C:\Users\sunny\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin 10 verbose lifecycle firebaseui@0.0.0~demo: CWD: C:\Users\sunny\Downloads\firebaseui-web-master 11 silly lifecycle firebaseui@0.0.0~demo: Args: [ ‘/d /s /c’, ‘npm run build && ./buildtools/run_demo.sh’ ] 12 silly lifecycle firebaseui@0.0.0~demo: Returned: code: 1 signal: null 13 info lifecycle firebaseui@0.0.0~demo: Failed to exec demo script 14 verbose stack Error: firebaseui@0.0.0 demo: npm run build && ./buildtools/run_demo.sh 14 verbose stack Exit status 1 14 verbose stack at EventEmitter.<anonymous> (C:\Program Files\nodejs\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.<anonymous> (C:\Program Files\nodejs\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:877:16) 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5) 15 verbose pkgid firebaseui@0.0.0 16 verbose cwd C:\Users\sunny\Downloads\firebaseui-web-master 17 error Windows_NT 10.0.14393 18 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” “demo” 19 error node v6.9.2 20 error npm v3.10.9 21 error code ELIFECYCLE 22 error firebaseui@0.0.0 demo: npm run build && ./buildtools/run_demo.sh 22 error Exit status 1 23 error Failed at the firebaseui@0.0.0 demo script ‘npm run build && ./buildtools/run_demo.sh’. 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 firebaseui package, 23 error not with npm itself. 23 error Tell the author that this fails on your system: 23 error npm run build && ./buildtools/run_demo.sh 23 error You can get information on how to open an issue for this project with: 23 error npm bugs firebaseui 23 error Or if that isn’t available, you can get their info via: 23 error npm owner ls firebaseui 23 error There is likely additional logging output above. 24 verbose exit [ 1, true ]

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:8 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
xgeoffcommented, Feb 28, 2017

I’m on a mac and I got the exact same error. Tried to run “npm run build” but that failed too. I spent a while debugging this. Manually installing the node packages that were missing. Though, isn’t that what npm is supposed to do? Far too much time wasted on this. I just checked the node-modules directory and the number of modules needed for this little app is patently absurd. I’m moving on to something else.

0reactions
nicolasgarniercommented, Aug 30, 2018

Closing since this is a bit old. Please if you are facing such issue make open a new issue and provide as much details as possible especially what’s written in the console.

And yes, make sure to run npm install 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Unable to run demo: Key error "data" · Issue #89 - GitHub
I'm trying to run the data lineage wikimedia demo but I'm running into an error: Traceback (most recent call last):
Read more >
Unable to run Demo :: Silverfall General Discussions
The game always crashes and brings up the steam store when I attempt to run the demo. I am running the game as...
Read more >
ant - Unable to run the demo setup - Stack Overflow
I typed tomcat.install and it solved the problem since I need to download the tomcat inside the apps directory. Share. Share ...
Read more >
can't run demo applications: error in opening zip file - IBM
Hello,. I've installed BigInsights Enterprise 1.4 as a single node installation on my machine (CentOS 6.3, 64 bit), but can't run demo applications....
Read more >
Unable to run Hello World demo for S32K148 EVB
Hi, I am facing issues running the Hello World (S32K148_Project_Hello without SDK) from the example projects provided with S32 Design Studio ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found