-
-
Notifications
You must be signed in to change notification settings - Fork 298
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
TypeError: this.npmInstall is not a function #1283
Comments
See https://github.com/yeoman/generator/releases/tag/v5.0.0. |
I think think this is a bit less maintainable. the new method appears to require you to fix a version with the dependency. In most cases I don't want to specify a version and jsut let the most recent version be installed. I'm also having a bit of trouble actually getting it to update |
What was the reasoning for deprecating this behavior? |
@esatterwhite see #1067 (comment).
Should be fixed, when the version is empty, it should add latest version to package.json.
If so, it's a bug, please open a new issue detailing the behavior. |
It doesn't look like the new methods have a way to specify a working directory and its always updating the package.json in the process cwd. I maybe missing something too, is there away to modify package.json in a different directory? |
It updates package.json relative to the generator destinationPath().
|
Error log:
generators/app/index.js:
Enviorment:
The text was updated successfully, but these errors were encountered: