简体   繁体   English

安装包“npm install node”失败并显示 E404

[英]Installing package "npm install node" fails with E404

I am using a Raspberry Pi 4 with "Raspbian Buster with desktop and recommended software".我正在使用带有“带有桌面和推荐软件的 Raspbian Buster”的 Raspberry Pi 4。 Version npm: 6.13.4 Version node: v12.16.1版本 npm:6.13.4 版本节点:v12.16.1

Do anyone know what is wrong?有谁知道出了什么问题?

pi@raspberrypi:~ $ npm install node

npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/node-linux-arm - Not found
npm ERR! 404 
npm ERR! 404  'node-linux-arm@13.10.1' is not in the npm registry.

npm install node is not a valid package. npm install node不是有效的包。 Maybe npm install nodejs ?也许npm install nodejs

You can check all the "package manager" options for node here , but I didn't see anything related to Raspberry Pi (although I don't know much about Raspberry Pi, so maybe I missed something)您可以在此处查看 node 的所有“包管理器”选项,但我没有看到与 Raspberry Pi 相关的任何内容(虽然我对 Raspberry Pi 了解不多,所以也许我错过了一些东西)

You can always do:你总是可以这样做:

npm install npm

Which will give you nodejs as well.这也将为您提供nodejs More info here .更多信息在这里

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM