question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error when npm installing 1.7.0

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:16 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
kseniamukhortovacommented, May 28, 2021

Keep the npm install --ignore-scripts, but make sure you have jq installed in your system and available in $PATH.

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.

0reactions
davesnxcommented, May 28, 2021

There’s a paragraph explaining that:

By default, node-jq downloads jq on the installation process (when you run npm install node-jq). Downloads the binaries according to your SO.

Will improve it, Thanks

Read more comments on GitHub >

github_iconTop Results From Across the Web

npm install errors with Error: ENOENT, chmod - Stack Overflow
Continuosly check if ~/.npm/ contains subdirs with ownership (and/or permissions) other than your local user account, especially when you install or update ...
Read more >
http-errors - npm
Create HTTP errors for Express, Koa, Connect, etc. with ease. Install. This is a Node.js module available through the npm registry. Installation ......
Read more >
NPM install error - Prime Community Forum
On a fresh install of the template, running npm install results in this ... karma-jasmine@">=1.1" from karma-jasmine-html-reporter@1.7.0 npm ...
Read more >
Solved: [ERROR] Failed to execute goal com.github.eirslett...
You are probably getting this error maybe because you have not completed a "npm install". NPM install will download all the dependencies that...
Read more >
npm install error - error code ELIFECYCLE
23 error Failed at the project@1.7.0 init script 'npm install && npm run build'. 23 error Make sure you have the latest version...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found