简体   繁体   English

无效 json 尝试运行时出错的响应正文 npm install bootstrap --save

[英]invalid json response body at error while try to run npm install bootstrap --save

i'm trying to learn React following udemy I'm trying to run npm install bootstrap --save on visual studio terminal (as he said) but I"m getting this error我正在尝试跟随 udemy 学习 React 我正在尝试运行npm install bootstrap --save on visual studio terminal(正如他所说)但我收到了这个错误

npm ERR! code FETCH_ERROR
npm ERR! errno FETCH_ERROR
npm ERR! invalid json response body at https://selfcare.hutch.lk/selfcare/login.html reason: Unexpected token < in JSON at position 
0

Any help will be appreciated任何帮助将不胜感激

In most cases, the incompatibility of the packages that the video tutorial uses with the packages that we use causes these problems.在大多数情况下,视频教程使用的包与我们使用的包不兼容会导致这些问题。 The video may be too old and the installation instructions may have changed Well, you can re-install视频可能太旧了,安装说明可能改了 嗯,你可以重新安装

npm install 

your node module and run this command again您的节点模块并再次运行此命令

npm i bootstrap

You can visit this site for more information您可以访问此站点以获取更多信息

www.npmjs.com/package/bootstrap www.npmjs.com/package/bootstrap

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

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