Solve the problem record of "No package npm available"

888u

Last update at :2024-06-13,Edit by888u

Tonight, Snail is ready to try to install the Maptail visual logging software environment function. According to the documentation, the program can be installed through npm, but in my centos environment, there is no nmp default built-in package. Execute \ \\"Yum install npm -y\\" When there is an error message \\"No package npm available\\" there is no installation package.

It is inconvenient to encounter such a problem in the future, so I will record the solution process so that it can be directly copied and solved when encountering it in the future.

First, tips on npm errors encountered

Second, solution

rpm -Uvh http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Execute the rpm command to install the software package.

After the execution is completed, we can go to \\"yum install npm -y\\" to install npm and there will be no error prompts.

Recommended site search: Mainland China site group server, free personal website server, ip online agent virtual space purchase, domain name resolution server, website domain name query, personal domain name registration, agency registration, mobile ip agent, Ministry of Industry and Information Technology registration system,

Solve the problem record of

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码