edit: Please do not come into thread and use it to pontificate about the OS of your choice.
WARNING: Do not access the Subsystem files directly from Windows. Only use the mount point inside the subsystem. You may destroy the subsystem otherwise
So, for everyone with Windows 10 on April Update and the problem that currently Meteor simply crashes because it’s telling you that “module fibers cannot be found”, here’s a workaround to keep everything in Windows and not having to install Linux in a VM or something.
Install the Linux on Windows Subsystem. I chose Ubuntu.
Start the subsystem and install Meteor as usual by doing
sudo curl https://install.meteor.com/ | sh
Third, if you have some npm modules which need to be built (for instance, I’m using PaperJS which uses Canvas/Cairo) you should also do:
sudo apt-get update && sudo apt-get install build-essentials
sudo apt-get install gitis probably a good idea as well.
Clone your current development build into your environment. Easily done if you use Github or similar.
Now change into your project and do
meteor npm install && meteorto see if your project works as it should.
Now comes the annoying part: You first need to delete the files and folders you’re actively writing on and symlink those files back from Windows into the subsystems like so:
ln -s /mnt/C/Users/yourusernamehere/Documents/projectname/package.json
rm -rf client
ln -s /mnt/C/Users/yourusernamehere/Documents/projectname/client
Do this for everything except for two folders:
node_modulesin the root project folder and
.meteor/local. Everything else in the hidden folder
.meteorshould be linked like I just described on a file basis. Do not link the whole
If you want to add/update/remove Meteor packages or add/update/remove npm packages, you must do this from Windows. If you do a
meteor npm install --save material-ui(for example) in the Linux subsystem your symlink will be deleted and a faulty
package.jsonwill be created which will crash Meteor.
After you did 7) in Windows, you then do a simple
meteor npm install && meteorto start Meteor. If you there were no changes a simple
meteorwill suffice obviously.
If you did everything like I said then your folder in Linux should look like this:
Everything with a
-> beside it is a symlink. You’ll note that I didn’t link
.meteor/platforms - that’s a file which doesn’t need linking because you’ll most likely never need to edit it. Similar to
Every other method will run into problems of some kind. I hope it helps.
And once again for emphasis: Please do not come into thread and use it to pontificate about the OS of your choice.