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

run yo jhipster-ionic command Error #4

Closed
manisi opened this issue Nov 16, 2017 · 7 comments
Closed

run yo jhipster-ionic command Error #4

manisi opened this issue Nov 16, 2017 · 7 comments

Comments

@manisi
Copy link

manisi commented Nov 16, 2017

Hi,
module.js:487
throw err;
^

Error: Cannot find module '/usr/local/lib/node_modules/generator-jhipster-ionic/generators/app/../../node_modules/generator-jhipster/generators/util.js'
at Function.Module._resolveFilename (module.js:485:15)
at Function.Module._load (module.js:437:25)
at Module.require (module.js:513:17)
at require (internal/module.js:11:18)
at Object. (/usr/local/lib/node_modules/generator-jhipster-ionic/generators/app/index.js:8:21)
at Module._compile (module.js:569:30)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:503:32)
at tryModuleLoad (module.js:466:12)
at Function.Module._load (module.js:458:3)

@mraible
Copy link
Collaborator

mraible commented Nov 16, 2017

I have not published this repo to npm yet, but hope to soon. I'll leave this issue open until I do. In the meantime, you can clone this repository, cd into it, and run npm link to use it.

@manisi
Copy link
Author

manisi commented Nov 16, 2017 via email

@mraible
Copy link
Collaborator

mraible commented Nov 16, 2017

Yeah, I just fixed that issue, but now there's a new one.

TypeError: Cannot read property 'readJSON' of undefined
    at module.exports.get writing [as writing] (/Users/mraible/dev/jhipster/generator-jhipster-ionic/generators/app/index.js:55:42)

Steps to reproduce:

git clone git@github.com:oktadeveloper/generator-jhipster-ionic.git
cd generator-jhipster-ionic
npm link
cd ~
yo jhipster-ionic

@deepu105 - do you have any advice? I'm not sure what I'm doing wrong so that this.fs is not available at https://github.com/oktadeveloper/generator-jhipster-ionic/blob/master/generators/app/index.js#L55

@deepu105
Copy link
Member

deepu105 commented Nov 17, 2017 via email

@mraible
Copy link
Collaborator

mraible commented Nov 17, 2017

@deepu105 Changing get writing() to just writing() solved the problem.
@manisi Please update try again. If it works for you, please close this issue.

@manisi
Copy link
Author

manisi commented Nov 17, 2017

Thanks,
it works.

@manisi manisi closed this as completed Nov 17, 2017
@deepu105
Copy link
Member

deepu105 commented Nov 17, 2017 via email

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

No branches or pull requests

3 participants