node-jq: Error when npm installing 1.7.0
Hey guys, it seems that there’s an issue with the latest version. We tried on 3 different machines, all current NPM versions, in repos where it used to work before and in empty folders, and it always says:
npm ERR! path <DEV_PATH>\node_modules\node-jq\bin\jq
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall chmod
npm ERR! enoent ENOENT: no such file or directory, chmod '<DEV_PATH>\node_modules\node-jq\bin\jq'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
Installing an older version works: npm install node-jq@1.5.0
About this issue
- Original URL
- State: closed
- Created 5 years ago
- Comments: 16 (10 by maintainers)
Commits related to this issue
- Fix `node-jq` version to 1.6.0 - There where issues when trying to install a greater version: https://github.com/sanack/node-jq/issues/163 — committed to GoodDollar/GoodContracts by fernandomg 5 years ago
BTW, I have it installed in the system, which jq /usr/bin/jq
but I had the same ENOENT crash saying it was not found in node_modules/node-jq/bin/jq. My workaround was to pass the ‘/usr/bin/jq’ into ‘run’ method as the forth optional parameter, then it worked.