"ember-cli-update" updated app - but also created 5 new ones!

I have been using ember-cli-update for years and it has always worked fine. I just used it again, going from 3.15 to 3.17.

It changed the following files in my current project: .editorconfig, .eslintrc.js, .travis.yml, testem.js, package.json and added 1 new one: ember-cli-update.json.

None of this surprised me, as this usually happens, and now it is time to examine the changes and resolve any conflicts.

What did surprise me is that running the command also created 5 brand new ember apps in my /tmp directory!

That has never happened before. Can anyone shed any light on this?

Here is what I did:

larry@larry-lap:~/RubyMine/BNC$ npm install -g ember-cli-update

/home/larry/.nvm/versions/node/v13.3.0/bin/ember-cli-update -> /home/larry/.nvm/versions/node/v13.3.0/lib/node_modules/ember-cli-update/bin/ember-cli-update.js /home/larry/.nvm/versions/node/v13.3.0/bin/ecu -> /home/larry/.nvm/versions/node/v13.3.0/lib/node_modules/ember-cli-update/bin/ember-cli-update.js

  • ember-cli-update@0.53.3 added 759 packages from 760 contributors in 15.118s

larry@larry-lap:~/RubyMine/BNC$ rm -rf node_modules/ dist tmp

larry@larry-lap:~/RubyMine/BNC$ ember-cli-update

WARNING: Node v13.3.0 is not tested against Ember CLI on your platform. We recommend that you use the most-recent “Active LTS” version of Node.js. See https://git.io/v7S5n for details. installing app Ember CLI v3.15.1

Creating a new Ember app in /tmp/tmp-94099uFyCRAcFY4a/bnc: installing app Ember CLI v3.17.0

Creating a new Ember app in /tmp/tmp-9409auf5grE36VXy/bnc:

create .editorconfig create .ember-cli create .eslintignore create .eslintrc.js create .template-lintrc.js create .travis.yml create .watchmanconfig create README.md create app/app.js create app/components/.gitkeep create app/controllers/.gitkeep create app/helpers/.gitkeep create app/index.html create app/models/.gitkeep create app/router.js create app/routes/.gitkeep create app/styles/app.css create app/templates/application.hbs create config/environment.js create config/optional-features.json create config/targets.js create ember-cli-build.js create .gitignore create package.json create public/robots.txt create testem.js create tests/helpers/.gitkeep create tests/index.html create tests/integration/.gitkeep create tests/test-helper.js create tests/unit/.gitkeep create vendor/.gitkeep

Successfully created project bnc. Get started by typing:

cd bnc npm start

Happy coding!

create .editorconfig create .ember-cli create .eslintignore create .eslintrc.js create .template-lintrc.js create .travis.yml create .watchmanconfig create README.md create app/app.js create app/components/.gitkeep create app/controllers/.gitkeep create app/helpers/.gitkeep create app/index.html create app/models/.gitkeep create app/router.js create app/routes/.gitkeep create app/styles/app.css create app/templates/application.hbs create config/environment.js create config/optional-features.json create config/targets.js create ember-cli-build.js create .gitignore create package.json create public/robots.txt create testem.js create tests/helpers/.gitkeep create tests/index.html create tests/integration/.gitkeep create tests/test-helper.js create tests/unit/.gitkeep create vendor/.gitkeep

Successfully created project bnc. Get started by typing:

cd bnc npm start

Happy coding!

I have attached screenshots of a portion of my /tmp directory. As you can see, 5(!) new apps were created. I have also attached expansion screenshots of two of those directories so you can see that there are full-blown, new ember apps within them. (The other 3 directories also contain full new apps.)

Does this make any sense?

Wow I haven’t seen anything like that before. I see you’re removing tmp/ before starting, so it’s not that. My guess is the temp dir library I’m using, https://www.npmjs.com/package/tmp, is returning ./tmp/ instead of system temp when calling tmp.dir(). You might want to look into that. Nothing I’ve changed recently should have caused this. You could also try rolling back ember-cli-update to see if that fixes anything.

I’ve never seen anything like it either, and I’ve done a lot of upgrades.

I’m just going to chalk it up to a one-off and from now on stop drinking before I attempt an upgrade. Won’t be as much fun, but it will probably help. :wink:

Thanks for the reply!

I seem to be experience a similar problem. When I execute ember-cli-update from my project directory, ember-cli-update creates multiple new apps in /private/var/folders/.... Below is copied output from terminal:

tristanbiesecker@Tristans-MBP frontend % ember-cli-update
installing app
installing app
Ember CLI v3.18.0

Ember CLI v3.18.0

Creating a new Ember app in /private/var/folders/43/bzdvznv90msgt9yjn7qrb8340000gn/T/tmp-16919cZRjF48EWJKo/biesecker-art:
Creating a new Ember app in /private/var/folders/43/bzdvznv90msgt9yjn7qrb8340000gn/T/tmp-16919i0pXPmjqYYWa/biesecker-art:
  create .editorconfig
  create .ember-cli
  create .eslintignore
  create .editorconfig
  create .ember-cli
  create .eslintrc.js
  create .template-lintrc.js
  create .travis.yml
  create .eslintignore
  create .eslintrc.js
  create .template-lintrc.js
  create .watchmanconfig
  create README.md
  create app/app.js
  create app/components/.gitkeep
  create .travis.yml
  create .watchmanconfig
  create README.md
  create app/app.js
  create app/controllers/.gitkeep
  create app/helpers/.gitkeep
  create app/index.html
  create app/components/.gitkeep
  create app/controllers/.gitkeep
  create app/helpers/.gitkeep
  create app/models/.gitkeep
  create app/router.js
  create app/routes/.gitkeep
  create app/index.html
  create app/models/.gitkeep
  create app/router.js
  create app/styles/app.css
  create app/templates/application.hbs
  create config/environment.js
  create app/routes/.gitkeep
  create app/styles/app.css
  create config/optional-features.json
  create config/targets.js
  create ember-cli-build.js
  create .gitignore
  create app/templates/application.hbs
  create config/environment.js
  create package.json
  create public/robots.txt
  create testem.js
  create tests/helpers/.gitkeep
  create config/optional-features.json
  create config/targets.js
  create ember-cli-build.js
  create tests/index.html
  create tests/integration/.gitkeep
  create tests/test-helper.js
  create tests/unit/.gitkeep
  create .gitignore
  create package.json
  create public/robots.txt
  create testem.js
  create tests/helpers/.gitkeep
  create vendor/.gitkeep
  create tests/index.html
  create tests/integration/.gitkeep
  create tests/test-helper.js
  create tests/unit/.gitkeep
  create vendor/.gitkeep

Successfully created project biesecker-art.
Get started by typing:

  $ cd biesecker-art
  $ npm start


Successfully created project biesecker-art.
Get started by typing:

  $ cd biesecker-art
  $ npm start

Happy coding!
Happy coding!
Tags match, nothing to apply

Any help would be much appreciated. Thank you!