"sudo npm install --no-bin-links" should do it.
Cannot install Elixir on Homestead
Hi everyone,
I'm running Windows 8.1 on my desktop, and, as it seems to be a pain in the neck to install Elixir on this particular platform, I tried to install it directly on my Homestead instance.
When I run sudo npm install in the appropriate folder, I'm blocked after a few minutes by a rather cryptic error message : Error: UNKNOWN, symlink '../user-home/cli.js'
I get the same exact error when installing Gulp alone.
Does anyone had this problem or has a solution to it?
complete error message is here :
npm WARN package.json @ No repository field.
npm ERR! Error: UNKNOWN, symlink '../user-home/cli.js'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.13.0-30-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install"
npm ERR! cwd /home/vagrant/Code/myProjectFolder
npm ERR! node -v v0.10.32
npm ERR! npm -v 1.4.28
npm ERR! path ../user-home/cli.js
npm ERR! code UNKNOWN
npm ERR! errno -1
npm ERR! not ok code 0
@Awakenweb It's definitely something with Windows (and VirtualBox). Right now moving the directories closer to the root in Windows seems to fix the issue (so it will snugly fit into the 260 character limit); although I agree, the dependency system for npm is flawed. Also it is a ticking time bomb -- one day the chain of dependencies will become longer than the 260 characters and this will break for good.
Beverage seems interesting solution to this, but as mentioned on the website, packages for PHP are outdated. I do hope that they will eventually fix npm dependency management issues so that we wouldn't have to resort to things like creating the same command-line tool in a different language -- it makes more sense to focus all efforts on maintaining one implementation of it and the ecosystem for Gulp is already there.
Please or to participate in this conversation.