yeoman / generator-mobile

Scaffold out a mobile project based on Web Starter Kit
http://yeoman.io
918 stars 99 forks source link

yo mobile dies at gulpfile.js, writes empty ---------- file permissions #74

Closed mashcode closed 9 years ago

mashcode commented 9 years ago

fs.js:568 function strWrapper(err, written) { ^ Error: EACCES, permission denied '/Users/marc/Sites/NYCompost/gulpfile.js' at Error (native) at Object.fs.openSync (fs.js:502:18) at Object.fs.readFileSync (fs.js:354:15) at readFileAsString (/usr/local/lib/node_modules/generator-mobile/node_modules/yeoman-generator/lib/actions/wiring.js:277:13) at module.exports.yeoman.generators.Base.extend.writing.gulpfile (/usr/local/lib/node_modules/generator-mobile/app/index.js:137:27) at /usr/local/lib/node_modules/generator-mobile/node_modules/yeoman-generator/lib/base.js:395:14 at processImmediate as _immediateCallback

x1ddos commented 9 years ago

For some reason it fails at readFileAsString @mashcode could you post the output of ls -l /Users/marc/Sites/NYCompost?

mashcode commented 9 years ago

I assume you want the output after 'yo mobile'?

Thanks

email marc@marcshifflett.com | mobile 917-570-7079

On Sat, Feb 14, 2015 at 5:47 AM, alex notifications@github.com wrote:

For some reason it fails at readFileAsString https://github.com/yeoman/generator-mobile/blob/14dd99b4896ca5dc63fc7f9bee068048804f997f/app/index.js#L137 @mashcode https://github.com/mashcode could you post the output of ls -l /Users/marc/Sites/NYCompost?

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74370400 .

x1ddos commented 9 years ago

Yes. Well, after that error happened. On 14 Feb 2015 17:02, "Marc Shifflett" notifications@github.com wrote:

I assume you want the output after 'yo mobile'?

Thanks

email marc@marcshifflett.com | mobile 917-570-7079

On Sat, Feb 14, 2015 at 5:47 AM, alex notifications@github.com wrote:

For some reason it fails at readFileAsString < https://github.com/yeoman/generator-mobile/blob/14dd99b4896ca5dc63fc7f9bee068048804f997f/app/index.js#L137

@mashcode https://github.com/mashcode could you post the output of ls -l /Users/marc/Sites/NYCompost?

— Reply to this email directly or view it on GitHub < https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74370400

.

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74382819 .

mashcode commented 9 years ago

total 64

---------- 1 marc staff 11859 Feb 14 12:07 LICENSE

---------- 1 marc staff 5111 Feb 14 12:07 README.md

drwxr-xr-x 14 marc staff 476 Feb 14 12:07 app

drwxr-xr-x 4 marc staff 136 Feb 14 12:07 docs

---------- 1 marc staff 5625 Feb 14 12:07 gulpfile.js

---------- 1 marc staff 981 Feb 14 12:07 package.json While it does scaffold, all files are empty

email marc@marcshifflett.com | mobile 917-570-7079

On Sat, Feb 14, 2015 at 12:08 PM, alex notifications@github.com wrote:

Yes. Well, after that error happened. On 14 Feb 2015 17:02, "Marc Shifflett" notifications@github.com wrote:

I assume you want the output after 'yo mobile'?

Thanks

email marc@marcshifflett.com | mobile 917-570-7079

On Sat, Feb 14, 2015 at 5:47 AM, alex notifications@github.com wrote:

For some reason it fails at readFileAsString <

https://github.com/yeoman/generator-mobile/blob/14dd99b4896ca5dc63fc7f9bee068048804f997f/app/index.js#L137

@mashcode https://github.com/mashcode could you post the output of ls -l /Users/marc/Sites/NYCompost?

— Reply to this email directly or view it on GitHub <

https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74370400

.

— Reply to this email directly or view it on GitHub < https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74382819

.

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74383068 .

x1ddos commented 9 years ago

Is it possible you have some weird sticky bit set on /Users/marc/Sites/NYCompost dir? Can you try running it in a different directory, say /Users/marc/tmp, and if it still fails post the whole output of yo mobile? I'm unable to reproduce so far.

mashcode commented 9 years ago

Hey Alex, nope, nothing sticky. Tried installing in a clean dir. Also checked node and node_modules permissions. Seems ok. Running the most recent OS X Yosemite update, node v0.12.0, npm 2.5.1.

Thanks!

info Getting latest WSK release version ...

 info Found release v0.5.2

 info Fetching

https://github.com/google/web-starter-kit/archive/v0.5.2.zip ...

 info This might take a few moments

...................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................

✔ Done

 info Checking dependencies ...

✔ git

 info Configuring gulpfile.js

fs.js:568

function strWrapper(err, written) {

            ^

Error: EACCES, permission denied '/Users/marc/Sites/yomobile-test/gulpfile.js'

at Error (native)

at Object.fs.openSync (fs.js:502:18)

at Object.fs.readFileSync (fs.js:354:15)

at readFileAsString

(/usr/local/lib/node_modules/generator-mobile/node_modules/yeoman-generator/lib/actions/wiring.js:277:13)

at module.exports.yeoman.generators.Base.extend.writing.gulpfile

(/usr/local/lib/node_modules/generator-mobile/app/index.js:137:27)

at

/usr/local/lib/node_modules/generator-mobile/node_modules/yeoman-generator/lib/base.js:395:14

at processImmediate [as _immediateCallback] (timers.js:358:17)

email marc@marcshifflett.com | mobile 917-570-7079

On Sat, Feb 14, 2015 at 12:30 PM, alex notifications@github.com wrote:

Is it possible you have some weird sticky bit set on /Users/marc/Sites/NYCompost dir? Can you try running it in a different directory, say /Users/marc/tmp, and if it still fails post the whole output of yo mobile? I'm unable to reproduce so far.

— Reply to this email directly or view it on GitHub https://github.com/yeoman/generator-mobile/issues/74#issuecomment-74383959 .

x1ddos commented 9 years ago

Actually, I've just upgraded my npm version to 2.5.1 and started to have exact same issue on npm test. Downgrading back to 1.4.28 doesn't help though :) Trying to figure this out...

mashcode commented 9 years ago

Comforting to know 🙏

On Feb 14, 2015, at 2:43 PM, alex notifications@github.com wrote:

Actually, I've just upgraded my npm version to 2.5.1 and started to have exact same issue on npm test. Downgrading back to 1.4.28 doesn't help though :) Trying to figure this out...

— Reply to this email directly or view it on GitHub.

x1ddos commented 9 years ago

I filed https://github.com/kevva/download/issues/46

mashcode commented 9 years ago

Thanks Alex for the quick resolution! I guess I now have to learn the gulp way @_@