I just started trying ember. When generating a new app using ember-cli new my-app, it takes about a minute. And it creates a 177MB node_modules directory in my project.
177MB for a blank new project? That seems too much.
Can the node_modules be installed globally? So at least creating new ember project doesn’t take 1 minute on broadband connection (or 20 minutes on slower connection). And so I can use my limited disk space for other things.
Not for project dependencies, no :/. I wish npm stored versioned dependencies in one location, but alas it doesn’t. I’m not sure why node decided to go the route it did.
You could hack this if you wanted to by using a shared node_modules directory and sym-linking it into each of your projects manually. It might create some interesting issues, but at least you’d be able to figure out if it was good enough for you rather quickly.
If you are worried about bandwidth usage, npm by default caches packages. After deleting npm root cache and node_modules/, ember install pulls only about 30 mb of data from internet.
But, after uncompressing, it take 180+ MB of disk space.
What do you mean by “clone the module ember-cli”? do you mean copy -r my-project/node_modules/ember-cli /your/global/node_modules ?
I see there is already an ember-cli module in my /usr/local/lib/node_modules
which is almost exactly the same as the one in the project dir, with a bunch of minor difference like this
Hi,
It is also the part I don’t like with ember cli. It’s look like if we have to install gimp each time we create a new jpg and keep the soft with the file all the time. (Easy to say but) isn’t there any plan to make ember cli look more like a “software” in the future ? one installation and may be a graphic interface to install / remove addon, update them… with very light project folder ?