![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Web 工程化工具从零开始(问题整理)
辛望_上下求索
这个作者很懒,什么都没留下…
展开
-
UnhandledPromiseRejectionWarning: TypeError: Cannot read property ‘range‘ of null
building(node:44645) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'range' of nullOccurred while linting /Users/xinwang/Desktop/item/midas/src/pages/Juno/Mercury/ManageLayer/index.tsx:1 at OffsetStorage.setDesiredOffset (/Users/xin原创 2022-03-24 11:51:48 · 1423 阅读 · 0 评论 -
git warning: LF will be replaced by CRLF in 解决办法
windows中的换行符为 CRLF, 而在Linux下的换行符为LF,所以在执行add . 时会出现以下提示warning: LF will be replaced by CRLF in pom.xml.The file will have its original line endings in your working directory.# 解决办法git config core.autocrlf false...原创 2021-04-30 17:50:14 · 810 阅读 · 1 评论 -
npm全局安装包的默认路径在哪里?
npm root -g就可以知道了,原创 2021-04-29 11:34:33 · 1201 阅读 · 0 评论 -
tyarn : 无法将“tyarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正 确,然后再试一次。 所在位置 行:1 字符: 1 + tya
tyarn : 无法将“tyarn”项识别为 cmdlet、函数、脚本文件或可运行程序的名称。请检查名称的拼写,如果包括路径,请确保路径正确,然后再试一次。所在位置 行:1 字符: 1tyarn -v + CategoryInfo : ObjectNotFound: (tyarn:String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException``问题描原创 2021-04-27 17:56:40 · 1084 阅读 · 0 评论 -
解决办法:git错误 error: failed to push some refs to ‘https://github.com/...
问题描述:在git bash中键入 $ git push 进行提交的时候出现错误error: failed to push some refs to 'https://github.com/bluetata/问题原因:远程库与本地库不一致造成的,在hint中也有提示把远程库同步到本地库就可以了。解决办法:使用命令行:git pull --rebase origin master该命令的意思是把远程库中的更新合并到(pull=fetch+merge)本地库中,–-rebase的作用是取消掉本地库原创 2021-04-27 01:27:15 · 1320 阅读 · 0 评论 -
【git】warning: adding embedded git repository
warning: adding embedded git repository: git/…当前目录下面有.git文件夹------默认是隐藏的,直接将.git文件夹掉,再重新git add .则不再有报警提示,按正常的上传步骤上传代码即可。原创 2021-04-26 17:35:10 · 9795 阅读 · 2 评论 -
解决 fatal: Not a git repository (or any of the parent directories): .git 问题
git push 的时候出现了错误** fatal: Not a git repository (or any of the parent directories): .git **提示说没有.git这样一个目录在命令行 输入 git init 然后回车就好了git init接下来继续操作就好了原创 2021-04-26 17:34:19 · 94 阅读 · 0 评论