{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/697","repository_url":"https://api.github.com/repos/Microsoft/BashOnWindows","labels_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/697/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/697/comments","events_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/697/events","html_url":"https://github.com/Microsoft/BashOnWindows/issues/697","id":167977918,"number":697,"title":"Installing gulp-watch on WindowsBash fails on a dependency","user":{"login":"alanosman","id":2914981,"avatar_url":"https://avatars.githubusercontent.com/u/2914981?v=3","gravatar_id":"","url":"https://api.github.com/users/alanosman","html_url":"https://github.com/alanosman","followers_url":"https://api.github.com/users/alanosman/followers","following_url":"https://api.github.com/users/alanosman/following{/other_user}","gists_url":"https://api.github.com/users/alanosman/gists{/gist_id}","starred_url":"https://api.github.com/users/alanosman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alanosman/subscriptions","organizations_url":"https://api.github.com/users/alanosman/orgs","repos_url":"https://api.github.com/users/alanosman/repos","events_url":"https://api.github.com/users/alanosman/events{/privacy}","received_events_url":"https://api.github.com/users/alanosman/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/duplicate","name":"duplicate","color":"cccccc"},{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/file%20system","name":"file system","color":"c2e0c6"},{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/labels/fixed","name":"fixed","color":"c2e0c6"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-07-27T23:11:15Z","updated_at":"2016-10-07T23:50:50Z","closed_at":null,"body":"Hello,\r\n\r\nI 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.\r\n\r\nIt should be noted that the problem does not not exist on the same computer running the build we have via CygWin.  \r\n\r\nWhen we run gulp using the watcher (which is a file change scanning tool), we get the following error:\r\n\r\n```\r\n[18:56:54] Error: watch /home/ubuntu/elastc-webapp/assets/app/actions/ EPERM\r\n    at exports._errnoException (util.js:870:11)\r\n    at FSWatcher.start (fs.js:1234:19)\r\n    at Object.fs.watch (fs.js:1262:11)\r\n    at Gaze._watchDir (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:289:30)\r\n    at /home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:358:10\r\n    at iterate (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/helper.js:52:5)\r\n    at Object.forEachSeries (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/helper.js:66:3)\r\n    at Gaze._initWatched (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:354:10)\r\n    at Gaze.add (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:177:8)\r\n    at new Gaze (/home/ubuntu/elastc-webapp/node_modules/gaze/lib/gaze.js:74:10)\r\n```\r\n\r\nI 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.\r\n\r\n```\r\n[THEFORCE]06:54:44 {Development} ~/elastc-webapp$ npm install gulp-watch            \r\nnpm WARN install Couldn't install optional dependency: Unsupported                  \r\nElastc@0.0.1 /home/ubuntu/elastc-webapp                                             \r\n├─┬ ghost@0.8.0                                                                     \r\n│ └─┬ express-hbs@1.0.1                                                             \r\n│   └─┬ handlebars@4.0.5                                                            \r\n│     └─┬ uglify-js@2.6.2                                                           \r\n│       └─┬ yargs@3.10.0                                                            \r\n│         ├── camelcase@1.2.1                                                       \r\n│         ├─┬ cliui@2.1.0                                                           \r\n│         │ ├─┬ center-align@0.1.3                                                  \r\n│         │ │ ├─┬ align-text@0.1.4                                                  \r\n│         │ │ │ └── longest@1.0.1                                                   \r\n│         │ │ └── lazy-cache@1.0.4                                                  \r\n│         │ └── right-align@0.1.3                                                   \r\n│         └── window-size@0.1.0                                                     \r\n├─┬ gulp-uglify@1.5.4                                                               \r\n│ └─┬ uglify-js@2.6.4                                                               \r\n│   └─┬ yargs@3.10.0                                                                \r\n│     ├── camelcase@1.2.1                                                           \r\n│     ├─┬ cliui@2.1.0                                                               \r\n│     │ ├─┬ center-align@0.1.3                                                      \r\n│     │ │ ├─┬ align-text@0.1.4                                                      \r\n│     │ │ │ └── longest@1.0.1                                                       \r\n│     │ │ └── lazy-cache@1.0.4                                                      \r\n│     │ └── right-align@0.1.3                                                       \r\n│     └── window-size@0.1.0                                                         \r\n├── gulp-watch@4.3.5                                                                \r\n├─┬ jade@1.11.0                                                                     \r\n│ └─┬ uglify-js@2.7.0                                                               \r\n│   └─┬ yargs@3.10.0                                                                \r\n│     ├── camelcase@1.2.1                                                           \r\n│     ├── cliui@2.1.0                                                               \r\n│     └── window-size@0.1.0                                                         \r\n└─┬ swig@1.4.2                                                                      \r\n  └─┬ uglify-js@2.4.24                                                              \r\n    └─┬ yargs@3.5.4                                                                 \r\n      ├── camelcase@1.2.1                                                           \r\n      └── window-size@0.1.0                                                         \r\n```\r\n\r\nI 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.\r\n\r\nI 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.\r\n\r\nI have the latest Windows Preview build 14393\r\nThis morning I used the lxrun /uninstall command to remove and install the latest bash environment\r\nThe version of NPM we are running is 3.4.1\r\nThe version of Node we are running is 4.3.2\r\n\r\nI'm running everything on a Surface Book.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/comments/252386322","html_url":"https://github.com/Microsoft/BashOnWindows/issues/697#issuecomment-252386322","issue_url":"https://api.github.com/repos/Microsoft/BashOnWindows/issues/697","id":252386322,"user":{"login":"bitcrazed","id":961950,"avatar_url":"https://avatars.githubusercontent.com/u/961950?v=3","gravatar_id":"","url":"https://api.github.com/users/bitcrazed","html_url":"https://github.com/bitcrazed","followers_url":"https://api.github.com/users/bitcrazed/followers","following_url":"https://api.github.com/users/bitcrazed/following{/other_user}","gists_url":"https://api.github.com/users/bitcrazed/gists{/gist_id}","starred_url":"https://api.github.com/users/bitcrazed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bitcrazed/subscriptions","organizations_url":"https://api.github.com/users/bitcrazed/orgs","repos_url":"https://api.github.com/users/bitcrazed/repos","events_url":"https://api.github.com/users/bitcrazed/events{/privacy}","received_events_url":"https://api.github.com/users/bitcrazed/received_events","type":"User","site_admin":false},"created_at":"2016-10-07T23:50:50Z","updated_at":"2016-10-07T23:50:50Z","body":"This should now work in Insider builds >= [14942](https://msdn.microsoft.com/en-us/commandline/wsl/release_notes#build-14942)"}}
{"actor":{"display_login":"bitcrazed"}}