npm 链接不起作用(Windows);将 git 和 node.js 用于 lexandra/Aardwolf.git [英] npm link does not work (windows); using git and node.js for lexandra/Aardwolf.git

查看:88
本文介绍了npm 链接不起作用(Windows);将 git 和 node.js 用于 lexandra/Aardwolf.git的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在此处按照此移动 javascript 调试器的设置说明进行操作.仅供参考,我使用的是 Windows XP SP2 32 位.请理解我是使用 git、node.js 和 npm 的新手.

I'm following the setup instructions for this mobile javascript debugger here. FYI, I'm using Windows XP SP2 32-bit. Please understand I am new to using git, node.js, and npm.

现在,我被困在这一步

Download the required libraries by running "npm link" in the checked-out directory

链接这里帮助我分解了第一个链接中的步骤.当我发出 git clone 命令时,我推断目录 Aardwolf 已签出".我尝试在 Git Bash 窗口中的目录上运行 npm link,这就是我得到的;

The link here helped me a great deal with breaking down the steps from the first link. I deduced that the directory, Aardwolf, was 'checked-out' when I issued the git clone command. I tried running npm link on the directory, from within the Git Bash window, and this is what I got;

npm.cmd link ../../Aardwolf
./npm.cmd: line 1: unexpected EOF while looking for matching `''
./npm.cmd: line 7: syntax error: unexpected end of file

然后,我重新安装了 Git 并尝试通过 Windows 命令行使用它,结果如下:

Then, I reinstalled Git and tried using it through the Windows Command line and this is the result:

npm link
npm ERR: Error: npm link not supported on windows

然后它会在特定文件中给出更多错误,但这是主要错误.

And then it gives more errors at particular files, but that's the main one.

所以,我尝试使用 npm link 并且据说 Windows 不支持它.有没有办法解决这个问题???

So, I tried using npm link and it's supposedly not supported on Windows. Is there a workaround for this???

谢谢.

推荐答案

也许您应该按照此处所述尝试 mklink 或连接点 http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/(然后告诉我们你的发现!)

Perhaps you should try mklink or junction as described here http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/ (and then inform us of your findings!)

这篇关于npm 链接不起作用(Windows);将 git 和 node.js 用于 lexandra/Aardwolf.git的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆