-
Notifications
You must be signed in to change notification settings - Fork 824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to install acorn
npm package (inability to symlink on mounted drives)
#3
Comments
Did you run the bash window as administrator in Windows? My very limited understanding is that in order for you to actually have elevated permissions to the underlying file system (and probably other stuff) you need to open the window elevated. |
Launching "Bash on Ubuntu on Windows" with "Run as administrator" did not help resolve this issue. The same error appears. |
It appears,
|
acorn
npm packageacorn
npm package (inability to symlink on mounted drives)
Before going into possible solutions, I should point out that there are some issues with npm not related to symlinks. I have not tried acorn but will make certain this is one of our test. I should also point out that we have added a little bit about the filesystem here: https://msdn.microsoft.com/en-us/commandline/wsl/faq. That said, are you able to install acorn someplace under '/'? |
No. This works:
But this doesn't:
EDIT: But I'm actually unable to install anything in Furthermore, trying to install a package globally returns an entirely new error:
Sorry for all the error messages, just trying to post as much information for you guys as possible. |
Actually, love the info. Thanks! I'll take this up to the devs tomorrow. The fact that you're seeing the socket error makes me think that we have a bug someplace in our code. I'll make certain it gets to the right place. |
@russalex This could be an issue with running the command as root. I was getting the same stack and the same "could not get uid/gid" running:
I found these switches --user and --unsafe-perm
When I executed:
It gets all the way to the end and fails. I tried again with a few different accounts existing and non-existing. It always makes it to the end and fails with this:
I've got to call it a night, but I will try to look into it more tomorrow. Hopefully someone will have a workaround by then. |
Ok, good news and bad news. First the good news. Running through the steps on /tmp on one of our dev branches. Looks like there's a fix inbound. This morning I was able to:
Bad news is that this does not work through /mnt/c. I'll need to write a bug on that one. The team is hard at work fixing bugs. Every build we put out should have visible improvements. Not certain when this one will hit the insider flight, but it is inbound. |
@russalex Thanks for the update! When files are written to |
I believe these are related. |
@Buck-Rawgers I got the same issue even
|
@Buck-Rawgers until a update comes out fixing symlinks, there isn't much to do at this point. |
@EvNaverniouk go to |
any solution available ? |
@592da Apparently the Microsoft team has been making some progress here. We're waiting for a new update to Bash on Windows to give it another try. But so far it sounds like if you want to use |
New build is out :http://aka.ms/wip14328 I can confirm that npm working (without -g) on / is in the build. Getting these links on /mnt/ is working internally and will soon get onto the release pipeline. No ETA on when it will hit the public. Keeping this one open until full solution hits the public. |
@russalex Did some testing on Build 14328 and can confirm your notes
Amazing work so far! And incredible community outreach from the Microsoft team working on this project. Really excited to try out the next public release. |
Still having an symlink error on /mnt on build 14328 |
does not work for
|
I've "fixed" npm to install global packages into the home directory via
Now I'm getting a new error when I try installing any package:
|
This is STILL an issue in 2022. Debian 12, 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux, nodejs v16.15.1, npm 8.13.1. |
Steps to reproduce:
curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install -y nodejs
acorn
package vianpm install acorn
You'll get this message:
Not sure how to proceed as I'm already
root
with full permissionsUPDATE: For other nodejs developers finding this issue. Here is what I seem to have uncovered so far:
npm install -g {anything}
doesn't seem to worknpm install {anything}
doesn't seem to work if installing anywhere on/
npm install {some_packages}
on/mnt/{something}
sometimes doesn't work depending on whether or not that package needs to create symlinksThe text was updated successfully, but these errors were encountered: