简体   繁体   中英

npm link does not work (windows); using git and node.js for lexandra/Aardwolf.git

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.

Now, I'm stuck on this step

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

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

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.

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

Thank you.

I tried, in nodejs 0.65 version the link command does not work by saying: not support on windows. But using the latest version of nodejs 0.8.1, it works! oh, mine is windows 7 x64

也许您应该尝试mklink或交叉点,如http://www.howtogeek.com/howto/16226/complete-guide-to-symbolic-links-symlinks-on-windows-or-linux/所述 (然后通知我们你的发现!)

This is due to Windows XP only partially supporting Symlinks , and similarly Windows Vista and 7 requiring admin rights to use Symlinks.

The issue of npm link failing on windows was raised on the npm github page.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM