myartsev
myartsev

Reputation: 1232

Create new ember project with no internet connection?

Can it be possible to run ember new foo without an internet connection?
Project initialization involves fetching a number of resources from npm; is it possible to cache these ahead of time so that an internet connection is not necessary?

Upvotes: 4

Views: 117

Answers (1)

Steve H.
Steve H.

Reputation: 6947

ember new foo will create the basic project scaffold as well as the package.json and the bower.json. After that, it will install the dependencies. You can skip that part by specifying:

ember new foo --skip-npm --skip-bower

Once you have a package.json and bower.json file, you can theoretically obtain the npm packages from elsewhere. You can copy those folders to the application folder (foo) and be then be able to run the ember server.

Upvotes: 4

Related Questions