Skip to content
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

Installing gulp-watch on WindowsBash fails on a dependency #697

Closed
alanosman opened this issue Jul 27, 2016 · 9 comments
Closed

Installing gulp-watch on WindowsBash fails on a dependency #697

alanosman opened this issue Jul 27, 2016 · 9 comments

Comments

@alanosman
Copy link

alanosman commented Jul 27, 2016

Hello,

I have been trying to utilize the fabulous work you guys have done on WindowsBash to get a build for a product we are developing running on WindowsBash. Our product is a mongo/nodejs/Js/react stack and I have not been successful in getting the backend portion of it running. I'm stuck by gulp watcher failures, which while are not critical, is needed for gulp-sass as we update and modify files.

It should be noted that the problem does not not exist on the same computer running the build we have via CygWin.

When we run gulp using the watcher (which is a file change scanning tool), we get the following error:

[18:56:54] Error: watch /home/ubuntu/elastc-webapp/assets/app/actions/ EPERM
    at exports._errnoException (util.js:870:11)
    at FSWatcher.start (fs.js:1234:19)
    at Object.fs.watch (fs.js:1262:11)
    at Gaze._watchDir (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:289:30)
    at /home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:358:10
    at iterate (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/helper.js:52:5)
    at Object.forEachSeries (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/helper.js:66:3)
    at Gaze._initWatched (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:354:10)
    at Gaze.add (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:177:8)
    at new Gaze (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:74:10)

I went back to watch how our node modules are being installed and I noticed the following error. After checking on CygWin, I do not see this error.

[THEFORCE]06:54:44 {Development} ~/elastc-webapp$ npm install gulp-watch            
npm WARN install Couldn't install optional dependency: Unsupported                  
[email protected] /home/ubuntu/elastc-webapp                                             
├─┬ [email protected]                                                                     
│ └─┬ [email protected]                                                             
│   └─┬ [email protected]                                                            
│     └─┬ [email protected]                                                           
│       └─┬ [email protected]                                                            
│         ├── [email protected]                                                       
│         ├─┬ [email protected]                                                           
│         │ ├─┬ [email protected]                                                  
│         │ │ ├─┬ [email protected]                                                  
│         │ │ │ └── [email protected]                                                   
│         │ │ └── [email protected]                                                  
│         │ └── [email protected]                                                   
│         └── [email protected]                                                     
├─┬ [email protected]                                                               
│ └─┬ [email protected]                                                               
│   └─┬ [email protected]                                                                
│     ├── [email protected]                                                           
│     ├─┬ [email protected]                                                               
│     │ ├─┬ [email protected]                                                      
│     │ │ ├─┬ [email protected]                                                      
│     │ │ │ └── [email protected]                                                       
│     │ │ └── [email protected]                                                      
│     │ └── [email protected]                                                       
│     └── [email protected]                                                         
├── [email protected]                                                                
├─┬ [email protected]                                                                     
│ └─┬ [email protected]                                                               
│   └─┬ [email protected]                                                                
│     ├── [email protected]                                                           
│     ├── [email protected]                                                               
│     └── [email protected]                                                         
└─┬ [email protected]                                                                      
  └─┬ [email protected]                                                              
    └─┬ [email protected]                                                                 
      ├── [email protected]                                                           
      └── [email protected]                                                         

I can only determine that WindowsBash is preventing file directory access to this module. The error EPERM is related to permissions, but I do not have an idea how to determine exactly what is preventing. I have tried to run gulp as root and I get the same error.

I thought I would submit this as a bug as we do not see this error on Ubuntu platforms where we host our product, on our mac development platforms, no on CygWin. I can only determine that it is related to Windows Bash.

I have the latest Windows Preview build 14393
This morning I used the lxrun /uninstall command to remove and install the latest bash environment
The version of NPM we are running is 3.4.1
The version of Node we are running is 4.3.2

I'm running everything on a Surface Book.

@jwsloan
Copy link

jwsloan commented Jul 28, 2016

It looks like your issue is related to this one: #216

@fpqc
Copy link

fpqc commented Jul 31, 2016

Yep. You might be able to put your watcher manually into fallback polling mode like tail -f does automatically if you check the manpage?

@bitcrazed
Copy link
Contributor

This should now work in Insider builds >= 14942

@sunilmut
Copy link
Member

Closing this out since this has been marked fixed for sometime. If the issue persists, please reopen.

@swagers-sc
Copy link

Has there been any updates on how to get gulp-watch to work within Bash on Ubuntu on Windows? I've tried to find any explanation on how to get this to work properly.

@benhillis
Copy link
Member

@swagers-sc - what a build are you on? This issue is resolved in Insider builds and will be available when Creators Update ships.

@swagers-sc
Copy link

swagers-sc commented Feb 15, 2017

@benhillis My OS Build is 14393.693

@benhillis
Copy link
Member

@swagers-sc - ok, this will be resolved for you when up install Creators Update (assuming you do not want to opt into the Windows Insider program).

@swagers-sc
Copy link

@benhillis Yeah, I saw that. Looks like there's a tentative release of April for the Creators Update. Thanks again for the speedy response.

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

No branches or pull requests

8 participants