question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

ember-cli module directory emptied of files

See original GitHub issue

When using a yarn.lock but without bower as a dependency in package.json, the node_modules/ember-cli/ is emptied of files.

Currently when yarn is detected ember-try attempts to use it for most operations. An exception is that if bower is not a dependency, npm is used to install that dependency. I presume there is some negative interaction between the two systems that causes the files to be deleted.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:8 (7 by maintainers)

github_iconTop GitHub Comments

3reactions
rwjbluecommented, Aug 7, 2017

FWIW, I’ve been fighting with this issue today as well. I believe that it only happens when using npm@5 (in my case downgrading to npm@4 resolved the error cannot find module 'ember-cli').

1reaction
rwjbluecommented, Aug 7, 2017

@kategengler - Agreed. Lets use global bower, and error if not present and bower key in config is present.

Read more comments on GitHub >

github_iconTop Results From Across the Web

empty "server" folder in project root broke build #9029 - GitHub
I'm doing "step-by-step" app and rolling back commits from created server middleware I fased such issue (folder exists, because git don't ...
Read more >
Ember-CLI doesn't create any directories/files
Hey guys, I came across an odd problem with ember-cli. Running the usual ember new <project-name> or ember addon <addon-name> runs ...
Read more >
Ember.TEMPLATES is empty (ember-cli-htmlbars)
Ember.TEMPLATES is empty because the CLI uses modules for everything, including the templates. The templates are stored as modules prefixed ...
Read more >
Modify a host app's files during addon installation - EmberMap
This creates a file called blueprints/ember-wait-for-test-helper/index.js which exports an empty object: /*jshint node:true*/ module.exports ...
Read more >
Step 2: Create a new Ember app using Ember CLI
Creating a new Ember app will include initializing a new Git project. Let's start out in a ~/projects directory, where all our projcts...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found