"Cannot download @types/node: No @types/node versions available" Follow
I've just upgraded my expired EAP to the current RC1, and for the same project, WebStorm now gives this error on startup:
> Cannot download @types/node: No @types/node versions available
There's nothing else in the Event Log.
"types": ["node", "jest"],
and tsc compiles fine.
Please sign in to leave a comment.
please could you share your idea.log + a screenshot of Settings | Languages & Frameworks | Node.js and NPM page?
Dan Dascalescu did you solve this problem? I'm experiencing the same issue on Webstorm 2021.1. Never seen this before on previous versions.
Here's an excerpt from my log:
Build #WS-211.6693.108, built on April 5, 2021
Runtime version: 11.0.10+9-b1341.35 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
GC: ParNew, ConcurrentMarkSweep
Non-Bundled Plugins: de.docs_as_co.intellij.plugin.diagramsnet (0.1.5), com.intellij.database (211.6693.108)
Please make sure that there are no issues with internet connection; in particular, check that http://registry.npmjs.org is accessible
Can the registry be configured to use a different url?
That reminds me, the problem went away recently when I updated all my dependencies to their latest (major) versions via yarn. Still no idea what caused it, but haven't seen it since.
>can the registry be configured to use a different url?
no, it can't:(
Is there no way to manually install the @types/node package from a file? This is extremely critical for offline development. In other cases, such as IDE plugins, an option is provided to install from file.
You can install the typings in your project with npm i @types/node
The issue for me is that the IDE only connects when it is https://registry.npmjs.org - it does not connect if just http
@types/node is already in my package.json and i have a fully populated node_modules/@types/node (well since i use pnpm this is a link to a shared folder).
So, AFAICT, node types are working ...
So, i don't understand this error message, unless it is caused by using http instead of https?
Same issue - what's the solve. Annoying popup every time I open IntelliJ
Same issue here. IDE complains:
We have a private registry -- seems like this practice is more and more prevalent, given increased security concerns about open-source libraries and open registries.
Would be very useful to be able to specify the private registry, and have IDEA honor that specification.
Is there an open YouTrack item for this, so I can follow it?
Got the same disturbing error message today. I'm working with WSL/Ubuntu. IJ is running on Windows but the code is under WSL.
On a new project, in "Settings | Languages & Frameworks | Node.js", I set Node interpreter property to my WSL Node.js installation and I don't get this message anymore.