{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/2544","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/2544/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/2544/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/2544/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/2544","id":263183734,"number":2544,"title":"Are there two versions of WSL or bash?","user":{"login":"spences10","id":234708,"avatar_url":"https://avatars2.githubusercontent.com/u/234708?v=4","gravatar_id":"","url":"https://api.github.com/users/spences10","html_url":"https://github.com/spences10","followers_url":"https://api.github.com/users/spences10/followers","following_url":"https://api.github.com/users/spences10/following{/other_user}","gists_url":"https://api.github.com/users/spences10/gists{/gist_id}","starred_url":"https://api.github.com/users/spences10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/spences10/subscriptions","organizations_url":"https://api.github.com/users/spences10/orgs","repos_url":"https://api.github.com/users/spences10/repos","events_url":"https://api.github.com/users/spences10/events{/privacy}","received_events_url":"https://api.github.com/users/spences10/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-10-05T16:13:21Z","updated_at":"2017-10-05T16:13:21Z","closed_at":null,"author_association":"NONE","body":"This bug-tracker is monitored by developers and other technical types.  We like detail!  So please use this form and tell us, concisely but precisely, what's up.  Please fill out ALL THE FIELDS!\r\n\r\nIf you have a feature request, please post to [the UserVoice](https://wpdev.uservoice.com/forums/266908).\r\n\r\n**Important: When reporting BSODs or security issues, DO NOT attach memory dumps, logs, or traces to Github issues**. Instead, send dumps/traces to secure@microsoft.com, referencing the GitHub bug number. Ideally, please [configure your machine to capture minidumps](https://support.microsoft.com/en-us/help/315263/how-to-read-the-small-memory-dump-file-that-is-created-by-windows-if-a), repro the issue, and send the minidump from \"C:\\Windows\\minidump\\\".\r\n\r\n* Your Windows build number: Microsoft Windows [Version 10.0.16299.15]\r\n\r\n* What you're doing and what's happening: Seem to have two instances of WSL? \r\n\r\n* What's wrong / what should be happening instead: Should have one,I guess?\r\n\r\n* Strace of the failing command, if applicable:  err?\r\n\r\nSee [our contributing instructions](https://github.com/Microsoft/BashOnWindows/blob/master/CONTRIBUTING.md) for assistance.\r\n\r\n---\r\n\r\nI have installed bash for Windows by (firstly) following [this](guide1) which was all straight forward enable WSL from `OptionalFeatures.exe` which I did and all was good I installed zsh and fish and all was good, then I was wondering why `npm` wasn't working (which is another thing but not related to this question I believe) in my frustration to try get `npm` working in my shell I went and signed up for Windows Insiders so I could use and install Ubuntu from the windows store.\r\n\r\n![image](https://user-images.githubusercontent.com/234708/31234944-1aad11ce-a9e8-11e7-94f1-b1661e971991.png)\r\n\r\nSo I did, the version of Windows I'm on now is detailed above, I installed Ubuntu from the Store and assumed that was it, I'd need to reconfigure my `~/.bashrc` and relevant files to get back to where I was.\r\n\r\nI'm using Zeit's Hyper for my terminal which is configured to bash like so:\r\n\r\n```shell\r\nshell: 'C:\\\\Windows\\\\System32\\\\bash.exe',\r\n\r\n// for setting shell arguments (i.e. for using interactive shellArgs: ['-i'])\r\n// by default ['--login'] will be used\r\n// shellArgs: ['--command=usr/bin/bash.exe', '-l', '-i'],\r\n```\r\n\r\nWhen I open the terminal it logs me into bash but then if I take a look at `~/.bashrc` it has the config from the previous install, so doing `npm` I get:\r\n\r\n```shell\r\n$ npm -v\r\n: not foundram Files/nodejs/npm: 3: /mnt/c/Program Files/nodejs/npm:\r\n: not foundram Files/nodejs/npm: 5: /mnt/c/Program Files/nodejs/npm:\r\n/mnt/c/Program Files/nodejs/npm: 6: /mnt/c/Program Files/nodejs/npm: Syntax error: word unexpected (expecting \"in\")\r\n```\r\n\r\nSo it looks like it is still 'pointing' towards the 'old' version I had installed??\r\n\r\nI tried to run `lxrun /uninstall /full` and got an error, apologies I didn't take a note of what it was\r\n\r\nI then try run the command again and it says it's waiting for the command to complete, I restarted and tried again and got the same message.\r\n\r\nCan someone point me to a resource for setting it up and removing the 'other' version?\r\n\r\nGuides I have followed: \r\n\r\nhttps://msdn.microsoft.com/en-us/commandline/wsl/install_guide\r\nhttps://www.howtogeek.com/261188/how-to-uninstall-or-reinstall-windows-10s-ubuntu-bash-shell/\r\n\r\nI'm not entirely sure if the version that is installed via the `OptionalFeatures.exe` section is the same as the version installed via the Store, there seems to be a mismatch here as Hyper seems to be pointing to the WSL instance I installed first and the other instance I installed via the Store looks to be in the right place but I doesn't seem to be accessible via Hyper, hence why I tried to un-install the original WSL\r\n\r\nMake sense?\r\n\r\n\r\n\r\n[guide1]: https://evdokimovm.github.io/windows/zsh/shell/syntax/highlighting/ohmyzsh/hyper/terminal/2017/02/24/how-to-install-zsh-and-oh-my-zsh-on-windows-10.html "}}
{"actor":{"display_login":"spences10"}}