Closed
Description
[REQUIRED] Environment info
firebase-tools:
pkg/prelude/bootstrap.js:1185
throw error;
^
Error: Cannot find module 'semver'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
at Function.Module._resolveFilename (module.js:546:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1287:46)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:595:17)
at Module.require (pkg/prelude/bootstrap.js:1166:31)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/l145680/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/bin/firebase.js:3:14)
at Module._compile (module.js:651:30)
at Module._compile (pkg/prelude/bootstrap.js:1222:32)
at Object.Module._extensions..js (module.js:662:10)
EDIT: Coworker (he has npm) ran the --version
command and got 7.4.0
Platform:
MacOS Mojave
Version 10.14.6 (18G95)
[REQUIRED] Test case
- Using the standalone binary OR Using the auto install script (
curl -sL firebase.tools | bash
) - Without npm
- Causes the binary to error out
[REQUIRED] Steps to reproduce
Precondition:
- Do not have npm installed.
Steps:
1a. Download the standalone binary
or
1b. Use the auto install script (curl -sL firebase.tools | bash
)
- Attempt to run any firebase command (i.e.
firebase --version
) - Receive
Error: Cannot find module 'semver'
[REQUIRED] Expected behavior
Standalone binary can execute commands
[REQUIRED] Actual behavior
Standalone binary requires npm.
Log for firebase --version --debug
is the same as firebase --version
.
pkg/prelude/bootstrap.js:1185
throw error;
^
Error: Cannot find module 'semver'
1) If you want to compile the package/file into executable, please pay attention to compilation warnings and specify a literal in 'require' call. 2) If you don't want to compile the package/file into executable and want to 'require' it from filesystem (likely plugin), specify an absolute path in 'require' call using process.cwd() or process.execPath.
at Function.Module._resolveFilename (module.js:546:15)
at Function.Module._resolveFilename (pkg/prelude/bootstrap.js:1287:46)
at Function.Module._load (module.js:473:25)
at Module.require (module.js:595:17)
at Module.require (pkg/prelude/bootstrap.js:1166:31)
at require (internal/module.js:11:18)
at Object.<anonymous> (/Users/l145680/.cache/firebase/tools/lib/node_modules/firebase-tools/lib/bin/firebase.js:3:14)
at Module._compile (module.js:651:30)
at Module._compile (pkg/prelude/bootstrap.js:1222:32)
at Object.Module._extensions..js (module.js:662:10)