git bash下出现错误Error: Cannot find module 'git目录/node_modules/git包/bin/git包' 2017-04-26
来源:互联网 发布:胖熊数据库的微博 微博 编辑:程序博客网 时间:2024/06/04 00:28
git bash下出现错误Error: Cannot find module 'git目录/node_modules/git包/bin/git包'
经常用Git的可能都会觉得git bash
比cmd
好用一些,不仅在样式上,git bash
还支持ssh
、ls
、cp
、mv
、vi
这些Linux
常见命令。当然有一款软件专注美化cmd
,叫做cmder
,但是cmder
在windows
上光标有时候错乱,很烦人,而且源码在github
上下载下来也很难。git bash
是一个很好的替代品,最近发现全局安装好的node包,在cmd下可以运行,但是在git bash
下总是运行不了。
好好看了下错误提示,原来git bash在调用node包的时候是在git安装目录下调用的,而npm安装的包默认目录在C:/Users/用户名/AppData/Roaming/npm/node_modules/
下,git bash找不到node包所以会出错,那么怎么解决呢?打开你的git bash,没有什么是一段代码解决不了的。
- 1
- 2
- 3
- 1
- 2
- 3
这里给出下npm link的介绍,以及基本语法:
- 1
- 2
- 3
- 4
- 1
- 2
- 3
- 4
最后看一个截图:
阅读全文
0 0
- git bash下出现错误Error: Cannot find module 'git目录/node_modules/git包/bin/git包' 2017-04-26
- git bash下出现错误Error: Cannot find module 'git目录/node_modules/git包/bin/git包'
- AndroidStudio出现Cannot run program "/usr/local/bin/git"错误
- 多余的.git目录出现在vendor的包内
- Git Bash
- Git Bash
- Git windows下git bash显示中文
- Ubuntu10.10下通过下载git包安装git
- Ubuntu10.10下通过下载git包安装git
- git打pach包
- git push之后删除node_modules
- git push 出现错误
- git pull 出现错误
- Git git pull error
- [Git] Git出现一些错误的解决方法
- git bash下中文乱码
- Win7 Git bash 出现Permission denied (publickey)错误
- git git bash git shell的区别
- Android-五子连珠(四)-MainActivity的Java代码
- Effective C++之Item 20: 用 pass-by-reference-to-const(传引用给 const)取代 pass-by-value(传值)
- javascript高级知识点总结
- RBAC权限管理
- 上帝视角观看黑客攻防战
- git bash下出现错误Error: Cannot find module 'git目录/node_modules/git包/bin/git包' 2017-04-26
- Android_Handler中的HandlerMessage方法
- 如何正确的利用威胁情报在网络安全运维中的分析和应用
- Linux4.6.0下的网络设备驱动
- JAVA运行war包时,用户登录返回中文乱码
- linux求两个文件的交集,并集,差集
- Jedis returnResource使用注意事项
- 字符设备驱动(四)-led实例
- jquery attr()方法