Picture of Khari Kambon
Error: ENOENT:no such file or directory, open 'C:\adapt_authoring-master\config\config.json'
by Khari Kambon - Wednesday, 19 April 2017, 3:16 AM
 

I'm pretty much stuck with this error. trying to upgrade the AT to version 3.0

started with as seemingly unpassable error about an "underscore" module missing, listed npm and was getting all kinds of npm errors about module dependencies, was able to fix that and get further in the upgrade, but now at standstill.  This AT instance was a vagrant install.

I looked in this location and there is  one file called config-sample.json. I compared this file to the copy of the AT v3.0 clone and it's the same, so what's wrong?  How do I fix this?

The full output from the cmd:

C:\>cd /adapt_authoring-master

C:\adapt_authoring-master>node upgrade.js
fs.js:549
  return binding.open(pathModule._makeLong(path), stringToFlags(flags), mode);
                 ^

Error: ENOENT: no such file or directory, open 'C:\adapt_authoring-master\conf\c
onfig.json'
    at Error (native)
    at Object.fs.openSync (fs.js:549:18)
    at Object.fs.readFileSync (fs.js:397:15)
    at Object.<anonymous> (C:\adapt_authoring-master\upgrade.js:31:32)
    at Module._compile (module.js:410:26)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

 

 

Picture of Khari Kambon
Re: Error: ENOENT:no such file or directory, open 'C:\adapt_authoring-master\config\config.json'
by Khari Kambon - Thursday, 20 April 2017, 1:28 AM
 

Chuck Lorenz helped me get past this.Thanks!  I had to rename that file to "config.json" to proceed. Now I just need to work out yet another error about "not having a git repository"