Skip to content
This repository has been archived by the owner on Mar 26, 2018. It is now read-only.

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

Closed
mashcode opened this issue Feb 14, 2015 · 10 comments
Closed

Comments

@mashcode
Copy link

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
Copy link
Contributor

x1ddos commented Feb 14, 2015

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

@mashcode
Copy link
Author

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

gulpfile = this.readFileAsString(filepath);

@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
#74 (comment)
.

@x1ddos
Copy link
Contributor

x1ddos commented Feb 14, 2015

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
<

gulpfile = this.readFileAsString(filepath);

@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
<
#74 (comment)

.


Reply to this email directly or view it on GitHub
#74 (comment)
.

@mashcode
Copy link
Author

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
<

gulpfile = this.readFileAsString(filepath);

@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
<

#74 (comment)

.


Reply to this email directly or view it on GitHub
<
#74 (comment)

.


Reply to this email directly or view it on GitHub
#74 (comment)
.

@x1ddos
Copy link
Contributor

x1ddos commented Feb 14, 2015

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
Copy link
Author

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
#74 (comment)
.

@x1ddos
Copy link
Contributor

x1ddos commented Feb 14, 2015

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
Copy link
Author

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
Copy link
Contributor

x1ddos commented Feb 15, 2015

I filed kevva/download#46

@mashcode
Copy link
Author

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

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

No branches or pull requests

2 participants