当尝试npm安装-D实时服务器时,会出现javascript错误



当我在系统中安装npm时,我总是会遇到麻烦。这一次我在学习javascript教程,所以他向我们展示了如何使用命令npm install -D live-sever,但它会出现错误。顺便说一句,我在代理服务器后面使用互联网。

`npm ERR! code E404
npm ERR! 404 Not Found - GET https://registry.npmjs.org/live-sever - Not found     
npm ERR! 404
npm ERR! 404  'live-sever@*' is not in this registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)   
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

正确的名称是live-server:

npm install -D live-server

最新更新