Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Commands like webpack init webpack-addons-demo fail when a custom prefix is configured in ~/.npmrc.
I believe the root cause is that yarn saves global lib packages to ~/.config/yarn/global/node_modules, even when a separate prefix is configured (at least, that is the behavior on my machine with yarn v1.3.2). The init command, however, searches in the location determined by the configured npm prefix. So when yarn is installed, the init command uses it to install the requested package but then fails because it can't find the just-installed package in the npm global directory.

yarn config list displays this value for prefix for npm, and none for yarn:
prefix: '/Users/dylanonelson/.npm-packages',
If the current behavior is a bug, please provide the steps to reproduce.
Run webpack init webpack-addons-demo with yarn installed. The error is reproducible with and without a custom npm prefix, at least on my machine.
What is the expected behavior?
The command should not fail when the generator package has been installed.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.
Do you want to request a feature or report a bug?
Bug
What is the current behavior?
Commands like
webpack init webpack-addons-demofail when a custom prefix is configured in~/.npmrc.I believe the root cause is that yarn saves global
libpackages to~/.config/yarn/global/node_modules, even when a separate prefix is configured (at least, that is the behavior on my machine with yarn v1.3.2). The init command, however, searches in the location determined by the configured npm prefix. So whenyarnis installed, the init command uses it to install the requested package but then fails because it can't find the just-installed package in the npm global directory.yarn config listdisplays this value forprefixfor npm, and none for yarn:prefix: '/Users/dylanonelson/.npm-packages',If the current behavior is a bug, please provide the steps to reproduce.
Run
webpack init webpack-addons-demowith yarn installed. The error is reproducible with and without a custom npm prefix, at least on my machine.What is the expected behavior?
The command should not fail when the generator package has been installed.
If this is a feature request, what is motivation or use case for changing the behavior?
Please mention other relevant information such as the browser version, Node.js version, Operating System and programming language.