Concerning Node.js was Bootstrap npm package recently deprecated?

痞子三分冷 提交于 2019-12-11 11:11:58

问题


I am trying to install Bootstrap using the npm install method. I have been on this for a while now and am wondering if I am doing something wrong? the npm install is still included on Bootstrap site as well as github and the npm page.

From what I understand using bower has been deprecated. Had serious issues using gulp. Any assistance or a link to an updated tutorial would be greatly appreciated.

Following errors occured while trying to install via terminal:

~/GitHub/GitSite $ npm install boostrap
npm WARN deprecated boostrap@2.0.0: Package no longer supported.  
Contact support@npmjs.com for more info.
npm WARN gitsite@1.0.0 No repository field.

+ boostrap@2.0.0
updated 1 package in 1.902s
~/GitHub/GitSite $ npm install boostrap jquery popper.js --save
npm WARN deprecated boostrap@2.0.0: Package no longer supported.  
Contact support@npmjs.com for more info.
npm WARN gitsite@1.0.0 No repository field.

+ boostrap@2.0.0
+ jquery@3.3.1
+ popper.js@1.14.3
updated 3 packages in 2.216s

In the download was included all the correct folders, however, in node_modules > boostrap there was a README file that said:


Deprecated Package

This package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.

Please contact support@npmjs.com if you have questions about this package.


回答1:


Do you have bootstrap@2.0.0 listed in your package.json dependencies?

try npm i bootstrap@4.1.0




回答2:


~/GitHub/GitSite $ npm install boostrap

You made a typo buddy, npm install boostrap instead of npm install bootstrap Try with the correct package name and it will work!




回答3:


Try this:

npm install --save bootstrap@4.1.0


来源:https://stackoverflow.com/questions/50013290/concerning-node-js-was-bootstrap-npm-package-recently-deprecated

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!