-
Notifications
You must be signed in to change notification settings - Fork 24
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
installing missing npm modules repeatedly fails and then succeeds with no change #273
Comments
how did you invoke installation? this does not look like log from IDE, nor N4JSC. |
Sure thing @yoosiba. Here are the steps I took:
|
that package is quite large. Although it works for me:
similar issue is discussed here npm/npm#11993 maybe it is combination of :
Could you refer to the linked ticket and try solutions with npm cache / shrinkwrap helps? If not than this might be issues with public / private packages, as stated in npm/npm#11993 (comment)
|
Please note that I am using npm5 I have no control over what parameters get called since it comes from the ide right click and I have cleaned my cache already today. So what workaround are you talking about exactly @yoosiba |
Maybe if the command line n4js compiler could come in at something less than 50 megs it would help. |
It would be nice if the size compiler would be smaller. If it could be smaller, it would be smaller. Unfortunately it is not possible now. I was thinking about the manually doing:
in your external libraries folder. If that does not help it looks like the issue with the private / public packages, in which case you should ask @dbo
|
I am not sure I agree with you there @yoosiba I look at other compilers, for example typescript, and they are an order of magnitude smaller eg https://registry.npmjs.org/typescript/-/typescript-2.6.0-dev.20170929.tgz As for the manual steps, that would be fine, but can we also install the packages manually? |
In general, though, I doubt this is the private/public issue since it works on the 11th try. Also I do not see an npm-shrinkwrap.json. Also this seems like a lot of guessing. |
Where even are the packages that get installed in this way? They are not in the local repository. I really think this is an internal issue to the ide and you should look at it. |
Manual installation can work but requires extra steps 2) in .../.n4npm/node_modules/n4js-cli
3) in IDE do "Run maintenance Actions" -> "Reload npm libraries from disk" Then it should work. I have hard time reproducing this issue, I have reinstalled n4js-cli few times from IDE and it worked every time.
P.S. |
I'm having a similar problem where I get a timeout error after 240 seconds when installing n4js-cli. Maybe it's possible to increase the timeout limit?
|
I can observe that my downstream is quite slow when the IDE is trying to download the package, so I suppose that there is either a network problem or something is happening with our Nexus. Either way, a longer time out may be useful. |
If you haven't tried yet, update to Node 8.9.x or 9.x: nodejs/node#13391 |
All the installation methods of npms were completely reworked in the meantime. This issue would not happen anymore. Closing this as solved/invalid. |
installing packages often fail and must be reinstalled repeatedly before they are actually installed without errors. n4js-cli package failed > 10 times over two days before it finally succeeded.
Example error log:
The text was updated successfully, but these errors were encountered: