- 博客(9)
- 收藏
- 关注
原创 [npminstall:runscript:error] node-sass@^4.12.0 scripts.postinstall run “node scripts/build.js“
更新的最新的node版本之后,cnpm install项目起不来,还报错如下
2022-01-11 14:15:29 10313 2
原创 yarnb报错The engine “node“ is incompatible with this module.
报错过程全局npm yarn npm install -g yarn使用yarn create react-app antd-demo 新建项目报错如图错误原因:[email protected]: The engine "node" is incompatible with this module. Expected version "^12.22.0 || ^14.17.0 || >=16.0.0". Got "14.16.1"依赖版本不兼容,本机n
2021-12-15 16:42:24 3450
原创 Warning: To load an ES module, set “type“: “module“ in the package.json or use the .mjs extensi
node 运行报错Warning: To load an ES module, set "type": "module" in the package.json or use the .mjs extension.解决package.json{ ... "type": "module", "version": "1.0.0", ...}
2021-12-03 10:36:19 2930
原创 You provided a `value` prop to a form field without an `onChange` handler. This will render a read-
React 报错如下:Warning: You provided a value prop to a form field without an onChange handler. This will render a read-only field. If the field should be mutable use defaultValue. Otherwise, set either onChange or readOnly.原因:input标签没有定义onChange事件,但提供了val
2021-12-02 17:34:14 3798
原创 零基础手把手学习Angular之创建项目报错:setTimeout is not defined
零基础的宝们,跟着视频学习Angular中,会教授大家如何创建一个新项目。但是在操作时就会遇到无法创建的问题。接下来我们一起来看看,本人Angular起步时卡在家门口的问题。在已经安装了nodejs的情况下,被建议使用cnpm命令全局安装 Angular CLIcnpm install -g @angular/cli它是这样查看Angular版本cnpm install -g @angular/cli貌似没什么问题继续往下现在我们来使用命令创建一个Angular本地运行项目,自行选择
2021-11-15 09:29:24 2608
原创 JavaScript中slice、splice、split的区别
JavaScript中slice、splice、split的区别slice()Array.prototype.slice()数组单元项截取slice() 方法返回一个新的数组对象,将所有从索引 start 到 end(不包括 end)的数组项复制到一个新的数组。原始数组不会被改变。参数都是可选项,若没有参数则返回原始数组arr.slice([start], [end])------------------------------------------// for examplelet
2021-10-15 13:37:47 90
原创 html自闭和标签(一)
◆<br/>:表示换行。◆<hr/>:表示画一条线。◆<area/>:标签定义图像映射中的区域(注:图像映射指得是带有可点击区域的图像)。area 元素总是嵌套在 <map>标签中。◆<base/>:标签为页面上的所有链接规定默认地址或默认目标。◆<img/>:放入图片。◆<input/>:用户输入的标签。◆<link/>: 标签定义文档与外部资源的关系。 标签最常见的用途是链接样式表。◆<m
2021-10-15 10:49:21 424
原创 Vue 项目运行后自动弹出网页
vue.config.js 文件在运行vue项目文件时禁止自动弹出页面,可将open的value改为false。或想自动弹出页面则改为true。devServer: { port: port, open: false, overlay: { warnings: false, errors: true }, proxy: {} },config.js 文件部分vue项目中可在其配置中添加autoOpenBrowser: truea
2021-10-15 10:47:02 747
原创 js中??和?.的意思
空值合并操作符(??)只有当左侧为null和undefined时,才会返回右侧的数空值合并操作符(??)是一个逻辑操作符,当左侧的操作数为 null 或者 undefined 时,返回其右侧操作数,否则返回左侧操作数。与逻辑或操作符(||)不同,逻辑或操作符会在左侧操作数为假值时返回右侧操作数。也就是说,如果使用 || 来为某些变量设置默认值,可能会遇到意料之外的行为。比如为假值(例如,’’ 或 0)时。可选链操作符( ?. )可选链操作符( ?.)允许读取位于连接对象链深处的属性的值,而不必明确
2021-09-09 14:04:20 239
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人