Starter-babel will not build on win10


#1

Hi,

I’m having some issues running the starter-babel on windows 10
The first error I get building with gradlew straight out of the box:

FAILURE: Build failed with an exception.
What went wrong:
Execution failed for task ':npmInstall'.
 A problem occurred starting process 'command 'C:\Users\Martin\Documents\Development\Enonic\sourcecode\reacting\.gradle\nodejs\node-v4.2.1-win-x64\node.exe''

The node.exe is missing or not installing proberly. I’ve done this manually downloading it from here

This leads on to other problems, the full log:

> Task :npmInstall
> npm WARN package.json [email protected] No description
> npm WARN package.json [email protected] No repository field.
> npm WARN package.json [email protected] No README data
> npm WARN package.json [email protected] No license field.
> npm WARN optional dep failed, continuing [email protected]
> [email protected] node_modules\babel-cli
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> ÔööÔöÇÔöÇ [email protected] ([email protected], [email protected])

> [email protected] node_modules\babel-preset-react
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> ÔööÔöÇÔöÇ [email protected] ([email protected])

> [email protected] node_modules\babel-preset-env
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected]
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
> Ôö£ÔöÇÔöÇ [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])
> Task :[email protected] ([email protected], [email protected], babel-template> :babelJs
> C:\Users\Martin\Documents\Development\Enonic\sourcecode\starter-babel\node_modules\.bin\babel:4                                                   <=<=------------> 11% EXECUTING [4m 17s]
> case `uname` [email protected] ([email protected], babel-helper-builder-binary-ass<=------------> 11% EXECUTING [4m 14s]
> ^^^^öÇÔöÇ [email protected] (babel[email protected], [email protected]<=------------> 11% EXECUTING [3m 51s]
> ÔööÔöÇÔöÇ [email protected] ([email protected])
> SyntaxError: Unexpected token case43s]
>     at exports.runInThisContext (vm.js:53:16)
>     at Module._compile (module.js:414:25)
>     at Object.Module._extensions..js (module.js:442:10)
>     at Module.load (module.js:356:32)
>     at Function.Module._load (module.js:311:12)
>     at Function.Module.runMain (module.js:467:10)
>     at startup (node.js:134:18)
>     at node.js:961:3


> FAILURE: Build failed with an exception.

> * What went wrong:
> Execution failed for task ':babelJs'.
> Process 'command 'C:\Users\Martin\Documents\Development\Enonic\sourcecode\starter-babel\.gradle\nodejs\node-v4.2.1-win-x64\node.exe'' finished with non-zero exit value 1

> * Try:
> Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.

> BUILD FAILED in 5m 22s
> 3 actionable tasks: 2 executed, 1 up-to-date

Is there some sort of requirement I’m missing? Or any other version I could try?


#2

I actually have zero idea, just wanna give you some feedback.

Did you solve this? Does deleting /node_modules/ folder help?
Are you on 1.3.0 of starter-babel? It failed before that on Windows.


#3

Havent quite been able to figure it out yet, no.
It seems to generate a new /node_modules if I delete it manually. And I’m using v1.3.0 of the starter.

I’m not too familiar with setting up gradle and webpack - so I’ve been thinking about doing it from 0 in a empty vanilla project. Maybe I can figure it out along the way.


#4