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

Filesystem watchers like libinotify do not work #216

Closed
mablae opened this Issue Apr 16, 2016 · 143 comments

Comments

Projects
None yet
@mablae

mablae commented Apr 16, 2016

The whole /proc/sys/fs structure is missing, too.

inotitywait does not get triggered by filesystem changes.

@stehufntdev

This comment has been minimized.

Show comment
Hide comment
@stehufntdev

stehufntdev Apr 18, 2016

Collaborator

Thanks for reporting the issue.

Currently, only portions of procfs are implemented and there is limited inotify support. To get this on our priority list can you add it to our [UserVoice](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash page) page? Thanks again for trying out WSL!

Collaborator

stehufntdev commented Apr 18, 2016

Thanks for reporting the issue.

Currently, only portions of procfs are implemented and there is limited inotify support. To get this on our priority list can you add it to our [UserVoice](https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash page) page? Thanks again for trying out WSL!

@patryk9200

This comment has been minimized.

Show comment
Hide comment
@mablae

This comment has been minimized.

Show comment
Hide comment
@mablae

mablae commented Apr 18, 2016

@patryk9200 Thanks!

@JSMike

This comment has been minimized.

Show comment
Hide comment
@JSMike

JSMike Jun 1, 2016

All of the node.js watch functions that I've tried fail on EPERM. I've ensured that all files and directories that it's trying to access have the proper ownership group and user. I even tried running watch tasks as the root user, and I receive the same eperm issue. I've also made sure that all of the files are listed inside the linux subsystem, and that I'm not trying to watch files mounted to /mnt/c/

JSMike commented Jun 1, 2016

All of the node.js watch functions that I've tried fail on EPERM. I've ensured that all files and directories that it's trying to access have the proper ownership group and user. I even tried running watch tasks as the root user, and I receive the same eperm issue. I've also made sure that all of the files are listed inside the linux subsystem, and that I'm not trying to watch files mounted to /mnt/c/

@mablae

This comment has been minimized.

Show comment
Hide comment
@mablae

mablae Jun 1, 2016

JSMike: It does not work. This is why we opened this issue 😄

mablae commented Jun 1, 2016

JSMike: It does not work. This is why we opened this issue 😄

@JSMike

This comment has been minimized.

Show comment
Hide comment
@JSMike

JSMike Jun 1, 2016

yes, I was just trying to add detail

JSMike commented Jun 1, 2016

yes, I was just trying to add detail

@stehufntdev

This comment has been minimized.

Show comment
Hide comment
@stehufntdev

stehufntdev Jul 5, 2016

Collaborator

Thanks for the feedback. Inotify will not be fully supported in the Anniversary update, but we are tracking the work for future insider builds. If you haven't already, please vote on the user voice page for inotify (https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13469097-support-for-filesystem-watchers-like-inotify).

Collaborator

stehufntdev commented Jul 5, 2016

Thanks for the feedback. Inotify will not be fully supported in the Anniversary update, but we are tracking the work for future insider builds. If you haven't already, please vote on the user voice page for inotify (https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/suggestions/13469097-support-for-filesystem-watchers-like-inotify).

@alanosman

This comment has been minimized.

Show comment
Hide comment
@alanosman

alanosman Jul 28, 2016

I'm in the same boat #697 .. I have to go back to CygWin until we can see this resolved. I am very excited about this in Windows though. I spent a good day trying to get our dev kit working, and from what I can tell, the build is very solid. But yes, I also fell into missing proc/sys/net problems with mongo too so we will have to come back once these features are enabled.

alanosman commented Jul 28, 2016

I'm in the same boat #697 .. I have to go back to CygWin until we can see this resolved. I am very excited about this in Windows though. I spent a good day trying to get our dev kit working, and from what I can tell, the build is very solid. But yes, I also fell into missing proc/sys/net problems with mongo too so we will have to come back once these features are enabled.

@aseering

This comment has been minimized.

Show comment
Hide comment
@aseering

aseering Aug 1, 2016

Contributor

@SRGOM -- I don't know that there's automated telemetry, but users can vote on issues here:

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash

So Microsoft does have some information about both which features people want to use and how much they care about them.

On that note -- have you voted for this issue there? It's relatively high on the list.

Contributor

aseering commented Aug 1, 2016

@SRGOM -- I don't know that there's automated telemetry, but users can vote on issues here:

https://wpdev.uservoice.com/forums/266908-command-prompt-console-bash-on-ubuntu-on-windo/category/161892-bash

So Microsoft does have some information about both which features people want to use and how much they care about them.

On that note -- have you voted for this issue there? It's relatively high on the list.

@meffect

This comment has been minimized.

Show comment
Hide comment
@meffect

meffect Aug 3, 2016

Just posting here to show how much I would love to see this feature implemented

meffect commented Aug 3, 2016

Just posting here to show how much I would love to see this feature implemented

@jwsloan

This comment has been minimized.

Show comment
Hide comment
@jwsloan

jwsloan Aug 4, 2016

@meffect if you haven't already, you should throw three votes at it on the UserVoice page linked above. It has gotten a lot of traction lately, but hasn't yet been tagged by the MS team.

jwsloan commented Aug 4, 2016

@meffect if you haven't already, you should throw three votes at it on the UserVoice page linked above. It has gotten a lot of traction lately, but hasn't yet been tagged by the MS team.

@catmando

This comment has been minimized.

Show comment
Hide comment
@catmando

catmando Aug 4, 2016

how about how to work around the issue in the meantime??? for example what config settings etc, need to be used for a basic rails 5x install?

catmando commented Aug 4, 2016

how about how to work around the issue in the meantime??? for example what config settings etc, need to be used for a basic rails 5x install?

@jwsloan

This comment has been minimized.

Show comment
Hide comment
@jwsloan

jwsloan Aug 4, 2016

I generated my app with --skip-spring --skip-listen. Then when I run guard I use guard -p to force polling mode. I thought about trying to get spork running instead of spring, but I haven't done that yet. Guard without Spring does make TDD a slow and painful process, though. So I love seeing that UserVoice page getting more votes.

jwsloan commented Aug 4, 2016

I generated my app with --skip-spring --skip-listen. Then when I run guard I use guard -p to force polling mode. I thought about trying to get spork running instead of spring, but I haven't done that yet. Guard without Spring does make TDD a slow and painful process, though. So I love seeing that UserVoice page getting more votes.

@catmando

This comment has been minimized.

Show comment
Hide comment
@catmando

catmando Aug 4, 2016

Thanks @jwsloan

If you have already generated a rails app, here is what you have to do to fix:

  1. comment out this gems listen, spring, and spring-watcher-listen in the Gemfile:
  #gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  #gem 'spring'
  #gem 'spring-watcher-listen', '~> 2.0.0'

I am not sure you have to comment out spring / spring-watcher-listen, but that works for me...

Then in the development.rb comment out this line:

  #config.file_watcher = ActiveSupport::EventedFileUpdateChecker

and of course bundle install...

catmando commented Aug 4, 2016

Thanks @jwsloan

If you have already generated a rails app, here is what you have to do to fix:

  1. comment out this gems listen, spring, and spring-watcher-listen in the Gemfile:
  #gem 'listen', '~> 3.0.5'
  # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
  #gem 'spring'
  #gem 'spring-watcher-listen', '~> 2.0.0'

I am not sure you have to comment out spring / spring-watcher-listen, but that works for me...

Then in the development.rb comment out this line:

  #config.file_watcher = ActiveSupport::EventedFileUpdateChecker

and of course bundle install...

@jwsloan

This comment has been minimized.

Show comment
Hide comment
@jwsloan

jwsloan Aug 4, 2016

Good call on the file_watcher config, @catmando. I forgot about that part. I had to do that as well.

jwsloan commented Aug 4, 2016

Good call on the file_watcher config, @catmando. I forgot about that part. I had to do that as well.

@meffect

This comment has been minimized.

Show comment
Hide comment
@meffect

meffect Aug 4, 2016

@jwsloan Yep I gave it 3 votes. Imo, it looks more important than some of the ones above it so hopefully microsoft will tag it soon

meffect commented Aug 4, 2016

@jwsloan Yep I gave it 3 votes. Imo, it looks more important than some of the ones above it so hopefully microsoft will tag it soon

@meffect

This comment has been minimized.

Show comment
Hide comment
@meffect

meffect Aug 4, 2016

My currently blocking issue is writing an web application. typescript -watch and gulp -watch no workie. My way around it is to use node/npm windows binaries for gulp and typescript. the work around is ok, but not ideal for me because I use conemu to open 4 bash terminals inside a single window. i dont really like having to open a second window to call windows binaries for various reasons, mainly extra screen real estate needed. Also i'd much prefer to not have those windows binaries installed at all on my machine and just have the linux ones.

But ya there seem to be many other issues out there where you cant really work around them

meffect commented Aug 4, 2016

My currently blocking issue is writing an web application. typescript -watch and gulp -watch no workie. My way around it is to use node/npm windows binaries for gulp and typescript. the work around is ok, but not ideal for me because I use conemu to open 4 bash terminals inside a single window. i dont really like having to open a second window to call windows binaries for various reasons, mainly extra screen real estate needed. Also i'd much prefer to not have those windows binaries installed at all on my machine and just have the linux ones.

But ya there seem to be many other issues out there where you cant really work around them

@bluefantail

This comment has been minimized.

Show comment
Hide comment
@bluefantail

bluefantail Aug 5, 2016

Personally the workaround I used with a rails 5 application was to modify the file_watcher config in development.rb so that it can be disabled with an environment variable.

config.file_watcher = ActiveSupport::EventedFileUpdateChecker unless ENV['NO_INOTIFY']

Then set the the NO_INOTIFY environment variable in my .zshrc. That way one can still easily collaborate with people not using WSL, or just dev on other machines without Gemfile mess :)

I didn't need to do anything with the Gemfile at all here, it seemed to fall back to polling nicely.

bluefantail commented Aug 5, 2016

Personally the workaround I used with a rails 5 application was to modify the file_watcher config in development.rb so that it can be disabled with an environment variable.

config.file_watcher = ActiveSupport::EventedFileUpdateChecker unless ENV['NO_INOTIFY']

Then set the the NO_INOTIFY environment variable in my .zshrc. That way one can still easily collaborate with people not using WSL, or just dev on other machines without Gemfile mess :)

I didn't need to do anything with the Gemfile at all here, it seemed to fall back to polling nicely.

@jwsloan

This comment has been minimized.

Show comment
Hide comment
@jwsloan

jwsloan Aug 5, 2016

Thanks for the info, @bluefantail. Are you using Spring with that setup?�

jwsloan commented Aug 5, 2016

Thanks for the info, @bluefantail. Are you using Spring with that setup?�

pixeltrix added a commit to rails/rails that referenced this issue Aug 5, 2016

Add note about limitations of Windows Subsystem for Linux
Due to the limited support for inotify (Microsoft/WSL#216) in
WSL the best thing to do at moment is add a note about skipping spring
and listen when generating your application in the Getting Started guide.

[skip ci]

Fixes #26054.

(cherry picked from commit 70f2f98)

pixeltrix added a commit to rails/rails that referenced this issue Aug 5, 2016

Add note about limitations of Windows Subsystem for Linux
Due to the limited support for inotify (Microsoft/WSL#216) in
WSL the best thing to do at moment is add a note about skipping spring
and listen when generating your application in the Getting Started guide.

[skip ci]

Fixes #26054.
@bluefantail

This comment has been minimized.

Show comment
Hide comment
@bluefantail

bluefantail Aug 6, 2016

Yea I am, I initially thought that would be an issue as well and tried re-bundling without it (unsuccessfully). Disabling the file_watcher seemed to do the job, without the need for disabling spring at all. I'm newish to rails, but I can only presume if spring is an issue, the config also disables the spring-listen file watchers as well, or something like that. This is the Gemfile in question https://github.com/bluefantail/bathtub/blob/master/Gemfile

bluefantail commented Aug 6, 2016

Yea I am, I initially thought that would be an issue as well and tried re-bundling without it (unsuccessfully). Disabling the file_watcher seemed to do the job, without the need for disabling spring at all. I'm newish to rails, but I can only presume if spring is an issue, the config also disables the spring-listen file watchers as well, or something like that. This is the Gemfile in question https://github.com/bluefantail/bathtub/blob/master/Gemfile

@dballance

This comment has been minimized.

Show comment
Hide comment
@dballance

dballance Aug 6, 2016

Major blocker for any modern web dev workflow.

dballance commented Aug 6, 2016

Major blocker for any modern web dev workflow.

@cheshrkat

This comment has been minimized.

Show comment
Hide comment
@cheshrkat

cheshrkat Oct 8, 2016

@bitcrazed is this particular fix unusual, or will all non-insider WSL updates be confined to major OS updates?

Background to the question - many people can't or don't want to risk running their primary OS on the insider ring, which comes with pretty dire warnings. But confining WSL to a VM largely defeats the purpose of having it from a dev environment point of view (still a great way to test and provide feedback, of course). So this question kind of boils down to how long WSL will be a beta; and what sort of update cycle is likely when it moves out of beta.

cheshrkat commented Oct 8, 2016

@bitcrazed is this particular fix unusual, or will all non-insider WSL updates be confined to major OS updates?

Background to the question - many people can't or don't want to risk running their primary OS on the insider ring, which comes with pretty dire warnings. But confining WSL to a VM largely defeats the purpose of having it from a dev environment point of view (still a great way to test and provide feedback, of course). So this question kind of boils down to how long WSL will be a beta; and what sort of update cycle is likely when it moves out of beta.

@mastrauckas

This comment has been minimized.

Show comment
Hide comment
@mastrauckas

mastrauckas Oct 9, 2016

@bitcrazed for whatever reason fast ring is giving me 0x80240439 error. Is there a way I can download this update instead of using Windows Update?

mastrauckas commented Oct 9, 2016

@bitcrazed for whatever reason fast ring is giving me 0x80240439 error. Is there a way I can download this update instead of using Windows Update?

@sunilmut

This comment has been minimized.

Show comment
Hide comment
@sunilmut

sunilmut Oct 10, 2016

Member

@mastrauckas -

Is there a way I can download this update instead of using Windows Update?

Not that I know of. What's your current build? I see some people on the web having issues upgrading from 14393-14942 (see this post). There were also some other suggestions of turning off/on insider build or switching rings. Not sure if it will solve your problem, but worth giving it a try.

Disclaimer: The WSL team is not able to officially support Windows upgrade problems.

Member

sunilmut commented Oct 10, 2016

@mastrauckas -

Is there a way I can download this update instead of using Windows Update?

Not that I know of. What's your current build? I see some people on the web having issues upgrading from 14393-14942 (see this post). There were also some other suggestions of turning off/on insider build or switching rings. Not sure if it will solve your problem, but worth giving it a try.

Disclaimer: The WSL team is not able to officially support Windows upgrade problems.

@hoanglan87

This comment has been minimized.

Show comment
Hide comment
@hoanglan87

hoanglan87 Oct 14, 2016

is this particular fix unusual, or will all non-insider WSL updates be confined to major OS updates?

I understand that will wait for next OS update for non-fast-ring user, but provide the update for this feature only will be a big help here.

Thank you everyone.

hoanglan87 commented Oct 14, 2016

is this particular fix unusual, or will all non-insider WSL updates be confined to major OS updates?

I understand that will wait for next OS update for non-fast-ring user, but provide the update for this feature only will be a big help here.

Thank you everyone.

@dswitzer

This comment has been minimized.

Show comment
Hide comment
@dswitzer

dswitzer Nov 10, 2016

Can we get an update on when this will be released in the normal Windows Update release cycle?

I've been waiting for this fix, but I've had issues with the Windows 10 Insider builds before and so I have them disabled.

Thanks!

dswitzer commented Nov 10, 2016

Can we get an update on when this will be released in the normal Windows Update release cycle?

I've been waiting for this fix, but I've had issues with the Windows 10 Insider builds before and so I have them disabled.

Thanks!

@mablae

This comment has been minimized.

Show comment
Hide comment
@mablae

mablae Nov 11, 2016

@dswitzer This was already mentioned above: Somewhere between Jan '17 and Mar '17

mablae commented Nov 11, 2016

@dswitzer This was already mentioned above: Somewhere between Jan '17 and Mar '17

@dswitzer

This comment has been minimized.

Show comment
Hide comment
@dswitzer

dswitzer Nov 11, 2016

@mablae Thanks! I missed it when I read over the ticket. It's a shame it's going to take so long to push it out to the release stream. I wish I could cherry pick just the WSL updates for the insider builds!

dswitzer commented Nov 11, 2016

@mablae Thanks! I missed it when I read over the ticket. It's a shame it's going to take so long to push it out to the release stream. I wish I could cherry pick just the WSL updates for the insider builds!

@mablae

This comment has been minimized.

Show comment
Hide comment
@mablae

mablae Nov 11, 2016

I bet you are not alone 👍

mablae commented Nov 11, 2016

I bet you are not alone 👍

@azuryel

This comment has been minimized.

Show comment
Hide comment
@azuryel

azuryel Dec 13, 2016

hello everyone
I got a problem with sublime text, I follow the step of @laggingreflex ( ln -s /opt/sublime_text/sublime_text /usr/local/bin/sublime_text)
but when I dosubl myfile.rb ( same as sublime_text myfile.rb ) nothing going on, no error respond but the sublime window don't open if you have any solution to fix it please !

azuryel commented Dec 13, 2016

hello everyone
I got a problem with sublime text, I follow the step of @laggingreflex ( ln -s /opt/sublime_text/sublime_text /usr/local/bin/sublime_text)
but when I dosubl myfile.rb ( same as sublime_text myfile.rb ) nothing going on, no error respond but the sublime window don't open if you have any solution to fix it please !

@mablae

This comment has been minimized.

Show comment
Hide comment
@mablae

mablae Dec 13, 2016

@azuryel This is not related to this closed issue. Please open a new issue. Thanks

mablae commented Dec 13, 2016

@azuryel This is not related to this closed issue. Please open a new issue. Thanks

@howdoicomputer

This comment has been minimized.

Show comment
Hide comment
@howdoicomputer

howdoicomputer Feb 3, 2017

My goodness, what a thread. How... inconvenient.

I didn't see anybody mention it but to disable file watching you can edit config/environments/development.rb and comment out this line (it should be close to the bottom):

config.file_watcher = ActiveSupport::EventedFileUpdateChecker

howdoicomputer commented Feb 3, 2017

My goodness, what a thread. How... inconvenient.

I didn't see anybody mention it but to disable file watching you can edit config/environments/development.rb and comment out this line (it should be close to the bottom):

config.file_watcher = ActiveSupport::EventedFileUpdateChecker
@kayakyakr

This comment has been minimized.

Show comment
Hide comment
@kayakyakr

kayakyakr Feb 3, 2017

@howdoicomputer If you're using ActiveSupport's file watcher. Also the issue's been fixed, these watchers do work now.

kayakyakr commented Feb 3, 2017

@howdoicomputer If you're using ActiveSupport's file watcher. Also the issue's been fixed, these watchers do work now.

@howdoicomputer

This comment has been minimized.

Show comment
Hide comment
@howdoicomputer

howdoicomputer Feb 3, 2017

@kayakyakr I'm still getting this error then.

drfra@SPACEHORSE:/mnt/c/Users/drfrankinfurter/workspace/findahome$ rails s 2.3.3
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
/home/drfra/.rvm/gems/ruby-2.3.3/gems/rb-inotify-0.9.7/lib/rb-inotify/watcher.rb:74:in `initialize': Invalid argument - Failed to watch "/home/drfra/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.1/lib/active_support/locale": the given event mask contains no legal events; or fd is not an inotify file descriptor. (Errno::EINVAL)

I thought the fix was just rolled into the insider preview updates and hasn't yet hit mainstream?

EDIT: Ignore the rails s 2.3.3 line. It went in as rails s but that's what ConEmu rendered.

howdoicomputer commented Feb 3, 2017

@kayakyakr I'm still getting this error then.

drfra@SPACEHORSE:/mnt/c/Users/drfrankinfurter/workspace/findahome$ rails s 2.3.3
=> Booting Puma
=> Rails 5.0.1 application starting in development on http://localhost:3000
=> Run `rails server -h` for more startup options
Exiting
/home/drfra/.rvm/gems/ruby-2.3.3/gems/rb-inotify-0.9.7/lib/rb-inotify/watcher.rb:74:in `initialize': Invalid argument - Failed to watch "/home/drfra/.rvm/gems/ruby-2.3.3/gems/activesupport-5.0.1/lib/active_support/locale": the given event mask contains no legal events; or fd is not an inotify file descriptor. (Errno::EINVAL)

I thought the fix was just rolled into the insider preview updates and hasn't yet hit mainstream?

EDIT: Ignore the rails s 2.3.3 line. It went in as rails s but that's what ConEmu rendered.

@kayakyakr

This comment has been minimized.

Show comment
Hide comment
@kayakyakr

kayakyakr Feb 3, 2017

Any fixes here are 100% insider, mostly fast build. If you're not in the insider fast stream, I don't know what to tell you.

kayakyakr commented Feb 3, 2017

Any fixes here are 100% insider, mostly fast build. If you're not in the insider fast stream, I don't know what to tell you.

@howdoicomputer

This comment has been minimized.

Show comment
Hide comment
@howdoicomputer

howdoicomputer Feb 3, 2017

I just realized that this is the WSL project and not the Rails project. There is a similar ticket for that repository and I have it open in another tab. Someone is asking for a work around and I meant to reply there. My apologies.

howdoicomputer commented Feb 3, 2017

I just realized that this is the WSL project and not the Rails project. There is a similar ticket for that repository and I have it open in another tab. Someone is asking for a work around and I meant to reply there. My apologies.

@lahdo

This comment has been minimized.

Show comment
Hide comment
@lahdo

lahdo Feb 13, 2017

How can I get this update if I cannot sign up to Windows Insider Program??

lahdo commented Feb 13, 2017

How can I get this update if I cannot sign up to Windows Insider Program??

@lahdo

This comment has been minimized.

Show comment
Hide comment
@lahdo

lahdo Feb 13, 2017

Work-around for Webpack users. Add this to your webpack configuration file:

    watchOptions: {
        poll: true
    },

lahdo commented Feb 13, 2017

Work-around for Webpack users. Add this to your webpack configuration file:

    watchOptions: {
        poll: true
    },
@kayakyakr

This comment has been minimized.

Show comment
Hide comment
@kayakyakr

kayakyakr Feb 13, 2017

@lahdo your options, if you can't get insider are to wait for the creator's update in the March/April timeframe, or, as you've found, work around it.

kayakyakr commented Feb 13, 2017

@lahdo your options, if you can't get insider are to wait for the creator's update in the March/April timeframe, or, as you've found, work around it.

@computersarecool

This comment has been minimized.

Show comment
Hide comment
@computersarecool

computersarecool Apr 29, 2017

I am running the absolute latest version of Windows 10 (170424-221 atm) and I still have issues, in Bash as well I get:

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

computersarecool commented Apr 29, 2017

I am running the absolute latest version of Windows 10 (170424-221 atm) and I still have issues, in Bash as well I get:

npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

@ericblade

This comment has been minimized.

Show comment
Hide comment
@ericblade

ericblade Apr 29, 2017

That module is for macos not Linux.

ericblade commented Apr 29, 2017

That module is for macos not Linux.

@computersarecool

This comment has been minimized.

Show comment
Hide comment
@computersarecool

computersarecool Apr 29, 2017

Sorry for the unclear comment - hit send early. I get that when I run npm install -g nodemon on Bash
on Ubuntu on Windows. The full output is:

/home/optonox/.npm-global/bin/nodemon -> /home/optonox/.npm-global/lib/node_modules/nodemon/bin/nodemon.js
/home/optonox/.npm-global/lib
└── nodemon@1.11.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Although they both are listed as OPTIONAL DEPENDENCY trying to then run nodemon I get:

exception in nodemon killing node
Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (/mnt/c/Users/willy/AppData/Roaming/npm/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

----------------------------------------------------------
If appropriate, please file an error with the output from:
$ /usr/bin/nodejs /mnt/c/Users/willy/AppData/Roaming/npm/node_modules/nodemon/bin/nodemon.js --dump
At http://github.com/remy/nodemon/issues/new
----------------------------------------------------------

Thanks for your help here.

computersarecool commented Apr 29, 2017

Sorry for the unclear comment - hit send early. I get that when I run npm install -g nodemon on Bash
on Ubuntu on Windows. The full output is:

/home/optonox/.npm-global/bin/nodemon -> /home/optonox/.npm-global/lib/node_modules/nodemon/bin/nodemon.js
/home/optonox/.npm-global/lib
└── nodemon@1.11.0

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/nodemon/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

Although they both are listed as OPTIONAL DEPENDENCY trying to then run nodemon I get:

exception in nodemon killing node
Error: Cannot find module 'internal/fs'
    at Function.Module._resolveFilename (module.js:470:15)
    at Function.Module._load (module.js:418:25)
    at Module.require (module.js:498:17)
    at require (internal/module.js:20:19)
    at evalmachine.<anonymous>:18:20
    at Object.<anonymous> (/mnt/c/Users/willy/AppData/Roaming/npm/node_modules/nodemon/node_modules/update-notifier/node_modules/configstore/node_modules/graceful-fs/fs.js:11:1)
    at Module._compile (module.js:571:32)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:488:32)
    at tryModuleLoad (module.js:447:12)

----------------------------------------------------------
If appropriate, please file an error with the output from:
$ /usr/bin/nodejs /mnt/c/Users/willy/AppData/Roaming/npm/node_modules/nodemon/bin/nodemon.js --dump
At http://github.com/remy/nodemon/issues/new
----------------------------------------------------------

Thanks for your help here.

@noinkling

This comment has been minimized.

Show comment
Hide comment
@noinkling

noinkling Apr 29, 2017

Can't really help, but your problem likely has nothing to do with fsevents or its warning. There's possibly something screwy with your Node installation.

noinkling commented Apr 29, 2017

Can't really help, but your problem likely has nothing to do with fsevents or its warning. There's possibly something screwy with your Node installation.

@simonbuchan

This comment has been minimized.

Show comment
Hide comment
@simonbuchan

simonbuchan Apr 29, 2017

Nothing to do with this issue, and I'm guessing it would reproduce on real Linux and windows node. I suspect it's an old version of graceful-fs running on node 7. Since it's an internal dep. of nodemon your options are basically to find another, better maintained project, or to downgrade to node 6 (which should then give you deprecation warnings about re-evaluating fs)

simonbuchan commented Apr 29, 2017

Nothing to do with this issue, and I'm guessing it would reproduce on real Linux and windows node. I suspect it's an old version of graceful-fs running on node 7. Since it's an internal dep. of nodemon your options are basically to find another, better maintained project, or to downgrade to node 6 (which should then give you deprecation warnings about re-evaluating fs)

@noinkling

This comment has been minimized.

Show comment
Hide comment
@noinkling

noinkling Apr 29, 2017

Nodemon works fine here for me on Node 7.

noinkling commented Apr 29, 2017

Nodemon works fine here for me on Node 7.

@computersarecool

This comment has been minimized.

Show comment
Hide comment
@computersarecool

computersarecool Apr 29, 2017

@simonbuchan you may be right. I am running node 7.9.0 but this does work on my real Linux machine that is running 7.8.0

Do you have a recommendation for something better than nodemon?

computersarecool commented Apr 29, 2017

@simonbuchan you may be right. I am running node 7.9.0 but this does work on my real Linux machine that is running 7.8.0

Do you have a recommendation for something better than nodemon?

@simonbuchan

This comment has been minimized.

Show comment
Hide comment
@simonbuchan

simonbuchan Apr 29, 2017

Hmm, if you can't reproduce the issue on real Linux with the same node and nodemon versions, that seems like a wsl bug to me, but open a new issue for it, to stop speaking anyone that's commented on this one 😇

simonbuchan commented Apr 29, 2017

Hmm, if you can't reproduce the issue on real Linux with the same node and nodemon versions, that seems like a wsl bug to me, but open a new issue for it, to stop speaking anyone that's commented on this one 😇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment