-
Notifications
You must be signed in to change notification settings - Fork 140
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
[BUG] NPM install applicationinsights fails with errno -4058 #1403
Comments
Is this |
Looking at the logs it looks like node... transferring |
@iamsamcoder I cannot reproduce your results above on Node 23.4.0. Can you provide the exact node and npm versions you're using? And does clearing the |
Hi @JacksonWeber, I have installed Node v22.12.0 and NPM 10.9.1. I tried clearing I got around this error my moving my project to Ubuntu on WSL and then application insights for node installed without issue (Node 22.3.0). However, I would prefer not to have to use a WSL vm and I can't create a node.js project in VS 2022 on windows 11. Seems the issue was with installing azure packages. Axios installed fine on windows environment. |
@iamsamcoder are you able to install any other Azure packages? Or is application insights the only one giving you trouble? We can narrow it down from there. Although it's strange that I can't reproduce your issue, even in the same environment. |
I've found the problem. NPM install on windows required git bash for post install scripts. I just needed to add .npmrc file with path to git bash. Now, I'm able to install app insights. However, I was able to install other Azure packages before the update to my .npmrc file. It seems app insights has a dependency on protobufjs, which required git bash for post install scripts. I'm closing this ticket now. Thank you! |
I have a fresh install of node.js on Windows 11. I can install other packages, e.g.
npm install axios
, but I cannot install applicationinsights.Steps to Reproduce
npm init
npm install applicationinsights
fails with errno -4058. See full logs attached.I also cannot create a new Express api project in VS2022. It fails with similar errors.
Expected behavior
Install applicationinsights to succeed.
VS2022 create Express app to successfully init the project.
Additional context
Log details:
Install applicationinsights logs 2024-12-04T20_09_41_187Z-debug-0.log
Create ExpressProject failure logs: 2024-12-04T20_26_05_979Z-debug-0.log
The text was updated successfully, but these errors were encountered: