Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

npm run build throws "flow command not found" #15

Open
vinyll opened this issue Apr 10, 2018 · 0 comments
Open

npm run build throws "flow command not found" #15

vinyll opened this issue Apr 10, 2018 · 0 comments

Comments

@vinyll
Copy link

vinyll commented Apr 10, 2018

npm run build

> protonmail-export@1.1.0 build /Users/vinyll/Projects/protonmail-export
> flow && rm -Rf dist/* && babel src -d dist

sh: flow: command not found
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! protonmail-export@1.1.0 build: `flow && rm -Rf dist/* && babel src -d dist`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the protonmail-export@1.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/vinyll/.npm/_logs/2018-04-10T00_38_31_230Z-debug.log
➜  protonmail-export git:(master) ✗ cat /Users/vinyll/.npm/_logs/2018-04-10T00_38_31_230Z-debug.log
0 info it worked if it ends with ok
1 verbose cli [ '/usr/local/Cellar/node/9.5.0/bin/node',
1 verbose cli   '/usr/local/bin/npm',
1 verbose cli   'run',
1 verbose cli   'build' ]
2 info using npm@5.6.0
3 info using node@v9.5.0
4 verbose run-script [ 'prebuild', 'build', 'postbuild' ]
5 info lifecycle protonmail-export@1.1.0~prebuild: protonmail-export@1.1.0
6 info lifecycle protonmail-export@1.1.0~build: protonmail-export@1.1.0
7 verbose lifecycle protonmail-export@1.1.0~build: unsafe-perm in lifecycle true
8 verbose lifecycle protonmail-export@1.1.0~build: PATH: /usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/Users/vinyll/Projects/protonmail-export/node_modules/.bin:/usr/local/opt/mysql@5.6/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/MacGPG2/bin:/Development/android-sdk/platform-tools:/Development/android-sdk/tools
9 verbose lifecycle protonmail-export@1.1.0~build: CWD: /Users/vinyll/Projects/protonmail-export
10 silly lifecycle protonmail-export@1.1.0~build: Args: [ '-c', 'flow && rm -Rf dist/* && babel src -d dist' ]
11 info lifecycle protonmail-export@1.1.0~build: Failed to exec build script
12 verbose stack Error: protonmail-export@1.1.0 build: `flow && rm -Rf dist/* && babel src -d dist`
12 verbose stack spawn ENOENT
12 verbose stack     at ChildProcess.<anonymous> (/usr/local/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:48:18)
12 verbose stack     at ChildProcess.emit (events.js:160:13)
12 verbose stack     at maybeClose (internal/child_process.js:943:16)
12 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:220:5)
13 verbose pkgid protonmail-export@1.1.0
14 verbose cwd /Users/vinyll/Projects/protonmail-export
15 verbose Darwin 17.4.0
16 verbose argv "/usr/local/Cellar/node/9.5.0/bin/node" "/usr/local/bin/npm" "run" "build"
17 verbose node v9.5.0
18 verbose npm  v5.6.0
19 error file sh
20 error code ELIFECYCLE
21 error errno ENOENT
22 error syscall spawn
23 error protonmail-export@1.1.0 build: `flow && rm -Rf dist/* && babel src -d dist`
23 error spawn ENOENT
24 error Failed at the protonmail-export@1.1.0 build script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 1, true ]

Tried npm install flow and even with a dirtier -g flag but it didn't help getting some flow binary, nor does npm install node.flow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant