Menu icon Foundation

Developer | Sydney, Australia

I'm an Umbraco Backend Dev first and a Foundation Frontend Dev second. What a fantastic team.

My Posts


My Comments

Ben Norman commented on Rafi Benkual's post over 4 years

I just created a pull request for this https://github.com/zurb/foundation-apps-template/pull/7

Ben Norman commented on John Marshall's post over 4 years

So I ended up changing the foundationCLI.js file like so
Replace Line 94:
var npmInstall = ['npm.cmd', 'install'];
Replace Line 95:
var bowerInstall = ['bower.cmd', 'install'];
Replace Line 96:
var bundleInstall = ['bundle.bat'];
Replace Line 159:
exec(['bower.cmd', 'update', '--production', '--ansi'], function(err, out, code) {
Replace Line 178:
var proc = spawn('npm.cmd', cmd);

This gets the "foundation-apps new myApp" command to work.

However, when I run "foundation-apps watch", I get an error in event.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

Ben Norman commented on Ben Norman's post over 4 years

OK, I got past my first error.
I found a post at http://stackoverflow.com/questions/17516772/using-nodejss-spawn-causes-unknown-option-and-error-spawn-enoent-err

So I ended up changing the foundationCLI.js file like so
Replace Line 94:
var npmInstall = ['npm.cmd', 'install'];
Replace Line 95:
var bowerInstall = ['bower.cmd', 'install'];
Replace Line 96:
var bundleInstall = ['bundle.bat'];
Replace Line 159:
exec(['bower.cmd', 'update', '--production', '--ansi'], function(err, out, code) {
Replace Line 178:
var proc = spawn('npm.cmd', cmd);

This gets the "foundation-apps new myApp" command to work.

However, when I run "foundation-apps watch", I get an error in event.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

Posts Followed

No Content

Following

    No Content

Followers

My Posts

My Comments

You commented on Rafi Benkual's post over 4 years

I just created a pull request for this https://github.com/zurb/foundation-apps-template/pull/7

You commented on John Marshall's post over 4 years

So I ended up changing the foundationCLI.js file like so
Replace Line 94:
var npmInstall = ['npm.cmd', 'install'];
Replace Line 95:
var bowerInstall = ['bower.cmd', 'install'];
Replace Line 96:
var bundleInstall = ['bundle.bat'];
Replace Line 159:
exec(['bower.cmd', 'update', '--production', '--ansi'], function(err, out, code) {
Replace Line 178:
var proc = spawn('npm.cmd', cmd);

This gets the "foundation-apps new myApp" command to work.

However, when I run "foundation-apps watch", I get an error in event.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

You commented on Ben Norman's post over 4 years

OK, I got past my first error.
I found a post at http://stackoverflow.com/questions/17516772/using-nodejss-spawn-causes-unknown-option-and-error-spawn-enoent-err

So I ended up changing the foundationCLI.js file like so
Replace Line 94:
var npmInstall = ['npm.cmd', 'install'];
Replace Line 95:
var bowerInstall = ['bower.cmd', 'install'];
Replace Line 96:
var bundleInstall = ['bundle.bat'];
Replace Line 159:
exec(['bower.cmd', 'update', '--production', '--ansi'], function(err, out, code) {
Replace Line 178:
var proc = spawn('npm.cmd', cmd);

This gets the "foundation-apps new myApp" command to work.

However, when I run "foundation-apps watch", I get an error in event.js

events.js:72
        throw er; // Unhandled 'error' event
              ^
Error: spawn ENOENT
    at errnoException (child_process.js:1001:11)
    at Process.ChildProcess._handle.onexit (child_process.js:792:34)

Posts Followed

No Content

Following

  • No Content

Followers

  • No Content