sproutcore / build-tools

SproutCore Build Tools
12 stars 7 forks source link

Attempting to install a framework (via git) without a frameworks directory fails. #13

Closed topherfangio closed 10 years ago

topherfangio commented 10 years ago

Received the following error when attempting to install a framework via git. It was fixed by simply creating a frameworks directory.

8 May 14:23:22 - about to run code: SC.run(function () { BT.startInstall('git://github.com/profoundry-us/FireCore.git', { }); });
Checking out git://github.com/profoundry-us/FireCore.git into $TMPDIR/sproutcoreBT_1399577002158/FireCore
Checkout complete...
Copying into /Users/topher/Documents/Development/profoundry/collaborate/frameworks/FireCore

/Users/topher/Documents/Development/profoundry/build-tools/lib/installer.js:199
      if (er.code !== "EEXIST") throw er; // only throw if other error than th
                                      ^
Error: ENOENT, no such file or directory '/Users/topher/Documents/Development/profoundry/collaborate/frameworks/FireCore'
    at Object.fs.mkdirSync (fs.js:642:18)
    at BT.Installer.SC.Object.extend.installFramework (/Users/topher/Documents/Development/profoundry/build-tools/lib/installer.js:196:13)
    at BT.Installer.SC.Object.extend.gitCheckOutDidFinish (/Users/topher/Documents/Development/profoundry/build-tools/lib/installer.js:152:12)
    at /Users/topher/Documents/Development/profoundry/build-tools/lib/installer.js:128:33
    at ChildProcess.exithandler (child_process.js:635:7)
    at ChildProcess.EventEmitter.emit (events.js:98:17)
    at maybeClose (child_process.js:743:16)
    at Socket.<anonymous> (child_process.js:956:11)
    at Socket.EventEmitter.emit (events.js:95:17)
    at Pipe.close (net.js:465:12)
mauritslamers commented 10 years ago

Fixed in c7bfb7a