Closed CWSpear closed 9 years ago
There's absolutely no good reason for devs not to upgrade other than laziness. Yo runs on devs systems, not on servers. Yo will probably work fine on Node 0.10 in the foreseeable future, but we want to encourage people to upgrade for their own and communities benfit.
It's trickier for the Enterprise peeps and 3rd party stuff. We are using 0.10.38
and lots of modules that need to be compiled on docker for development (for one, grpc
does not like Mac!). We either can't use Yeoman to install anything and use it on the host with 0.12.x
, or else deal with this message (which is not at all a big deal, we'll totally survive! Just thought I'd help my team (and others in similar situations) out by saving them from dealing with the ominous message).
Out of curiosity, @CWSpear why do you run Yeoman inside of docker though? Couldn't yeoman only run on the dev environment and edit files in the docker shared folders?
@SBoudrias Yeoman could be ran outside of docker, but it couldn't do stuff like npm install
unless it was inside docker. My thought was just to tell people to run it inside of docker.
@CWSpear what if you also mount node_modules folder inside docker?
I use docker and never had to run Yeoman inside of it. This really seems like more complicated than it needs to be. I actually never ssh into my docker containers to run anything. They're just use to run my code/test in a specific environment.
@SBoudrias we have several modules that are compiled-on-install. For example, grpc
won't even install on Mac without extra effort (if at all. Everyone's given up and decided to just use docker before getting it to work). And I would assume (with good reason) that that version wouldn't run in the docker instance.
@SBoudrias i.e. if I run npm install
on my Mac, it (tries to) compile grpc
for whatever version of Node I have against my Mac, instead of 0.10.38
against i.e. centOS.
@CWSpear Got it, that make sense. I wonder if you could watch/rebuild your docker anytime you change something in your shared folder.
Mostly what we've been doing is connecting to the main docker container (linking everything to it), then just running npm install
if it's the first time and then we can just do npm test
(or mocha specific.test.js
, set up test watchers, etc) on the inside. We will sync folders so any changes are synchronized and we can dev normally on the host machine and just need to run tests/npm install
(if it's something that needs to be compiled) on the boot2docker vm.
If you install
yo
on Node0.10.x
(which meets the requirements inyo
'spackage.json
), you get the following warning fromyodoctor
:Either this "warning" seems a little more severe than it is (I believe this to be the case), or if this is really gonna cause issues (running on
0.10.x
),yo
needs to be more clear on what version(s) of Node it can run on.If perhaps, it still runs fine on
0.10.x
, but you're just suggesting to update, the message could better reflect that: