Menu icon Foundation
'foundation build' doesn't work

Hey there,

I've got a serious problem since yesterday.

I wanted to create a new project using npm "foundation new". The building process after typing in the project name etc. stopped at some point and says that node modules are not correctly intalled.

After trying some things (btw I have completely no idea of wat I'm doing here with npm etc.! I'm everything but a web developer!) I decided to reinstall node.js and start from zero.

This worked. Now I have my new project which works fine. Even the live server with "foundation watch" works fine.

But now when I want to execute "foundation build" I end up with the folowing error:

[20:09:30] 'build' errored after 27 s
[20:09:30] The following tasks did not complete: javascript, images
[20:09:30] Did you forget to signal async completion?


Can anybody tell me what went wrong here? 
That would be fantastic!

Cheers 
Finn



The complete code-builing-whatever-thing-text what happens while building is here:

PS C:\Users\finn-\Repos\XX> foundation build

 

> [email protected] build C:\Users\finn-\Repos\XX

> gulp build --production

 

[20:07:57] Failed to load external module @babel/register

[20:07:57] Requiring external module babel-register

[20:09:02] Using gulpfile ~\Repos\XX\gulpfile.babel.js

[20:09:02] Starting 'build'...

[20:09:02] Starting 'clean'...

[20:09:02] Finished 'clean' after 107 ms

[20:09:02] Starting 'pages'...

[20:09:02] Starting 'sass'...

[20:09:02] Starting 'javascript'...

[20:09:02] Starting 'images'...

[20:09:02] Starting 'copy'...

[20:09:24] Finished 'pages' after 22 s

[20:09:25] Finished 'copy' after 23 s

[20:09:30] 'sass' errored after 27 s

[20:09:30] Error: Ignoring local @import of "/count/35f17f" as resource is missing.

    at formatError (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\gulp-cli\lib\versioned\^4.0.0\format-error.js:20:10)

    at Gulp.<anonymous> (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\gulp-cli\lib\versioned\^4.0.0\log\events.js:31:15)

    at emitOne (events.js:121:20)

    at Gulp.emit (events.js:211:7)

    at Object.error (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\lib\helpers\createExtensions.js:61:10)

    at handler (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\now-and-later\lib\map.js:46:14)

    at f (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\now-and-later\node_modules\once\once.js:25:25)

    at f (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\node_modules\once\once.js:25:25)

    at tryCatch (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\index.js:24:15)

    at done (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\index.js:40:12)

[20:09:30] 'build' errored after 27 s

[20:09:30] The following tasks did not complete: javascript, images

[20:09:30] Did you forget to signal async completion?

Error: [email protected] build: `gulp build --production`

Exit status 1

    at EventEmitter.<anonymous> (C:\Users\finn-\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\lifecycle.js:217:16)

    at emitTwo (events.js:126:13)

    at EventEmitter.emit (events.js:214:7)

    at ChildProcess.<anonymous> (C:\Users\finn-\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\spawn.js:24:14)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

 

npmfoundation buildnot working

Hey there,

I've got a serious problem since yesterday.

I wanted to create a new project using npm "foundation new". The building process after typing in the project name etc. stopped at some point and says that node modules are not correctly intalled.

After trying some things (btw I have completely no idea of wat I'm doing here with npm etc.! I'm everything but a web developer!) I decided to reinstall node.js and start from zero.

This worked. Now I have my new project which works fine. Even the live server with "foundation watch" works fine.

But now when I want to execute "foundation build" I end up with the folowing error:

[20:09:30] 'build' errored after 27 s
[20:09:30] The following tasks did not complete: javascript, images
[20:09:30] Did you forget to signal async completion?


Can anybody tell me what went wrong here? 
That would be fantastic!

Cheers 
Finn



The complete code-builing-whatever-thing-text what happens while building is here:

PS C:\Users\finn-\Repos\XX> foundation build

 

> [email protected] build C:\Users\finn-\Repos\XX

> gulp build --production

 

[20:07:57] Failed to load external module @babel/register

[20:07:57] Requiring external module babel-register

[20:09:02] Using gulpfile ~\Repos\XX\gulpfile.babel.js

[20:09:02] Starting 'build'...

[20:09:02] Starting 'clean'...

[20:09:02] Finished 'clean' after 107 ms

[20:09:02] Starting 'pages'...

[20:09:02] Starting 'sass'...

[20:09:02] Starting 'javascript'...

[20:09:02] Starting 'images'...

[20:09:02] Starting 'copy'...

[20:09:24] Finished 'pages' after 22 s

[20:09:25] Finished 'copy' after 23 s

[20:09:30] 'sass' errored after 27 s

[20:09:30] Error: Ignoring local @import of "/count/35f17f" as resource is missing.

    at formatError (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\gulp-cli\lib\versioned\^4.0.0\format-error.js:20:10)

    at Gulp.<anonymous> (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\gulp-cli\lib\versioned\^4.0.0\log\events.js:31:15)

    at emitOne (events.js:121:20)

    at Gulp.emit (events.js:211:7)

    at Object.error (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\lib\helpers\createExtensions.js:61:10)

    at handler (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\now-and-later\lib\map.js:46:14)

    at f (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\now-and-later\node_modules\once\once.js:25:25)

    at f (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\node_modules\once\once.js:25:25)

    at tryCatch (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\index.js:24:15)

    at done (C:\Users\finn-\Repos\XX\node_modules\gulp\node_modules\undertaker\node_modules\bach\node_modules\async-done\index.js:40:12)

[20:09:30] 'build' errored after 27 s

[20:09:30] The following tasks did not complete: javascript, images

[20:09:30] Did you forget to signal async completion?

Error: [email protected] build: `gulp build --production`

Exit status 1

    at EventEmitter.<anonymous> (C:\Users\finn-\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\lifecycle.js:217:16)

    at emitTwo (events.js:126:13)

    at EventEmitter.emit (events.js:214:7)

    at ChildProcess.<anonymous> (C:\Users\finn-\AppData\Roaming\npm\node_modules\foundation-cli\node_modules\npm\lib\utils\spawn.js:24:14)

    at emitTwo (events.js:126:13)

    at ChildProcess.emit (events.js:214:7)

    at maybeClose (internal/child_process.js:925:16)

    at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)