[英]Git bash extensions in different hard disk won't recognize npm
I've been trying to run node.js from the Git Bash, however my workspace is located in the second hard drive, every time I run node from C: it works ok but once I try to run it from D: says 我一直在尝试从Git Bash运行node.js,但是,每次我从C运行节点时,我的工作区都位于第二个硬盘中:工作正常,但是一旦我尝试从D运行它:
Program Files\nodejs/node: No such file or directory
I tried with this line but didn't work 我尝试了这条线,但是没有用
$ export PATH=$PATH:"C:Program Files\nodejs"
Any idea how to make this work? 任何想法如何使这项工作?
If anyone is interested I fixed it by using this line 如果有人感兴趣,我可以使用此行修复
$ export PATH=$PATH:/c/Program\ Files/nodejs
without "", anybody know why? 没有“”,有人知道为什么吗?
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.