![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
nodejs
不吃虾米虾皮虾酱
GitHub&掘金:festinalente|CSDN主要记录零散内容
展开
-
创建.gitignore忽略全部node_modules
有时候在github上创建repo时会忘记创建.gitignore文件,此时只需要:在根目录创建 .gitignore 文件将 **/node_modules 写在 .gitignore 中在终端执行 git rm -r --cached . 清除缓存参考:Git忽略规则.gitignore不生效Git - Ignore node_modules folder everywhere...原创 2021-09-20 20:44:30 · 1842 阅读 · 0 评论 -
npm install -g npm安装报错
npm ERR! code EEXISTnpm ERR! path D:\nodejs\npm.cmdnpm ERR! Refusing to delete D:\nodejs\npm.cmd: is outside D:\nodejs\node_modules\npm and not a linknpm ERR! File exists: D:\nodejs\npm.cmdnpm ERR! Remove the existing file and try again, or run npmnp.原创 2020-09-23 16:29:59 · 8247 阅读 · 0 评论