名称只能包含网址友好字符 [英] name can only contain URL-friendly characters

查看:447
本文介绍了名称只能包含网址友好字符的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试使用npm init安装package.json,以将bootstrap安装在我的文件夹中,但出现错误.

I was trying to install package.json with npm init to install bootstrap in my folder but i am getting the error.

npm install bootstrap@4.0.0-alpha.6 --save

对此我是陌生的,我无法确切地知道我在做什么错. 我正在关注一个教程,该教程的链接将与我的控制台的屏幕快照一起附加.

I am new to this i can't exactly figure what i am doing wrong. I was following a tutorial whose link i'll attach along with screenshot of my console.

此教程链接

推荐答案

npm init实际上是在创建package.json文件并设置项目的特征(它与引导无关).因此,在字段包名称中,您必须输入项目的名称(现在已经输入了npm install bootstrap命令),或者如果方括号中显示的名称足够,则可以按Enter.通过设置项目的所有特征来完成npm初始化过程.

npm init is actually creating the package.json file and setting the characteristics of the project(It has no relation with bootstrap). So, in the field package name, you have to enter the name of your project (you have now entered the npm install bootstrap command) or you can just press enter if the name displayed in bracket is enough. Complete the npm init processs by setting all characteristics of project.

下一步,您可以执行npm install bootstrap@4.0.0-alpha.6 --save.会起作用的

As next step, you can do npm install bootstrap@4.0.0-alpha.6 --save. It'll work

这篇关于名称只能包含网址友好字符的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆