尝试安装节点或快速的类型信息时出现404错误

时间:2021-02-28 20:36:04

Following a basic tutorial to move to typescript.

按照基本教程移动到打字稿。

However when I attempt to install type information, by

但是,当我尝试安装类型信息时,通过

npm install --save @types/node

or

要么

npm install --save @types/express

I get 404 errors all over the place and fail. Obviously something basic is wrong, since I see this package listed at npm.

我到处都收到404错误而且失败了。显然一些基本错误,因为我看到这个包在npm列出。

1 个解决方案

#1


0  

This was on windows, with npm installed through Chocolatey. Uninstalling node and npm from choco, and reinstalling via the package from the node website seems to have fixed it.

这是在Windows上,通过Chocolatey安装了npm。从choco卸载节点和npm,并从节点网站重新安装包似乎修复了它。

#1


0  

This was on windows, with npm installed through Chocolatey. Uninstalling node and npm from choco, and reinstalling via the package from the node website seems to have fixed it.

这是在Windows上,通过Chocolatey安装了npm。从choco卸载节点和npm,并从节点网站重新安装包似乎修复了它。