ember-octane-blueprint icon indicating copy to clipboard operation
ember-octane-blueprint copied to clipboard

ember-cli: cannot read config file .ember-cli.js

Open Gaurav0 opened this issue 7 years ago • 6 comments

ember <whatever>

/home/gaurav/.config/yarn/global/node_modules/yam/lib/utils/io-utils.js:62
    throw "Cannot read config file: " + configPath;
    ^
Cannot read config file: /home/gaurav/dev/emberjs/something/.ember-cli.js

This likely is an issue with ember-cli@beta

Workaround: Step ember-cli back down to "~3.14.0"

Gaurav0 avatar Dec 05 '19 15:12 Gaurav0

Steps to reproduce?

rwjblue avatar Dec 05 '19 15:12 rwjblue

ember new something -b @ember/octane-app-blueprint
cd something
ember <whatever>

Gaurav0 avatar Dec 05 '19 15:12 Gaurav0

@Gaurav0 - What is the global ember version on your system? Are the dependencies installed for the application?

rwjblue avatar Dec 05 '19 16:12 rwjblue

I'm using 3.14.0 globally. Dependencies were installed.

I have another idea: I have a .ember-cli file (not .ember-cli.js file) in my home directory that looks like this:

{
  "yarn": true
}

Could that make a difference?

Gaurav0 avatar Dec 05 '19 16:12 Gaurav0

I had the same issue using 3.14.0-beta.2

For me the workaround was running yarn install within the something folder.

Have you tried installing all the dependencies again?

iamx avatar Feb 12 '20 11:02 iamx

FWIW, this was fixed in https://github.com/ember-cli/ember-cli/pull/8899

rwjblue avatar Feb 12 '20 15:02 rwjblue