Error
4th Sep 2017, Monday. All our node.js builds failed with below error at the step when we run flow check
1 | > flow check |
Cause
First thought it was a flow error of latest version. Downgrade ‘flow-bin’ to previous version didn’t work. It was actually caused by ‘spawn’ calling files with incorrect permissions. internal/child_process.js:315 throw errnoException(err, 'spawn');
NPM v5.4.0 removes executable(+x) permission during installing packages.
Solution
fix npm to v5.3.0 works npm install npm@5.3.0
It’s still an open issue in NPM when I wrote this.
https://github.com/npm/npm/issues/18324