Unable to run demo
See original GitHub issueHi, 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…
- Cloned the repo
- Ran “npm install” in the root.
- Ran “npm build” in the root
- 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.
- 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:
- Created 7 years ago
- Comments:8 (3 by maintainers)
Top GitHub Comments
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.
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
😃