PeterStaev / NativeScript-Drop-Down

A NativeScript DropDown widget.
Apache License 2.0
105 stars 65 forks source link

Cannot run demo on Windows #139

Closed petekanev closed 6 years ago

petekanev commented 6 years ago

Fetching the repository, followed by npm install and then npm run demo(-ng)-android produces the following output:

$ npm run demo-android

> nativescript-drop-down@3.1.3 demo-android D:\work\NativeScript-Drop-Down
> grunt build && cd demo && tns run android

Running "exec:tslint" (exec) task

Running "clean:build" (clean) task
>> 1 path cleaned.

Running "exec:tsCompile" (exec) task

Running "exec:ngCompile" (exec) task
>> D:\work\NativeScript-Drop-Down\node_modules\.bin\ngc:2
>> basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
>>           ^^^^^^^
>> SyntaxError: missing ) after argument list
>>     at createScript (vm.js:56:10)
>>     at Object.runInThisContext (vm.js:97:10)
>>     at Module._compile (module.js:542:28)
>>     at Object.Module._extensions..js (module.js:579:10)
>>     at Module.load (module.js:487:32)
>>     at tryModuleLoad (module.js:446:12)
>>     at Function.Module._load (module.js:438:3)
>>     at Module.runMain (module.js:604:10)
>>     at run (bootstrap_node.js:390:7)
>>     at startup (bootstrap_node.js:150:9)
>> Exited with code: 1.
>> Error executing child process: Error: Process exited with code 1.
Warning: Task "exec:ngCompile" failed. Use --force to continue.

node: 6.10.3 npm: 4.6.1 shell: MINGW64 Windows