Errors running the ng2-dashboard example


#1

Hello everybody,
i’m trying to compile and run the following example https://github.com/telerik/ng2-dashboard for android. I keep getting the following errors during the “npm run prepare-android” phase:

0 info it worked if it ends with ok
1 verbose cli [ ‘C:\Program Files\nodejs\node.exe’,
1 verbose cli ‘C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘prepare-android’ ]
2 info using npm@3.10.10
3 info using node@v6.10.3
4 verbose run-script [ ‘prepare-android’ ]
5 info lifecycle angular2-webpack-starter@5.0.5~prepare-android: angular2-webpack-starter@5.0.5
6 verbose lifecycle angular2-webpack-starter@5.0.5~prepare-android: unsafe-perm in lifecycle true
7 verbose lifecycle angular2-webpack-starter@5.0.5~prepare-android: PATH: C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin;C:\Users\previtis\Downloads\NativeScript-Projects\ng2-dashboard-master\ng2-dashboard-master\node_modules.bin;C:\ProgramData\Oracle\Java\javapath;C:\Program Files (x86)\Intel\iCLS Client;C:\Program Files\Intel\iCLS Client;C:\windows\system32;C:\windows;C:\windows\System32\Wbem;C:\windows\System32\WindowsPowerShell\v1.0;C:\Program Files\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Intel\Intel® Management Engine Components\DAL;C:\Program Files\Intel\Intel® Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel® Management Engine Components\IPT;C:\Program Files\Intel\Intel® Management Engine Components\IPT;C:\Program Files (x86)\IBM\Personal Communications;C:\Program Files (x86)\IBM\Trace Facility;C:\windows\system32\config\systemprofile.dnx\bin;C:\Program Files\Microsoft DNX\Dnvm;c:\Program Files (x86)\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\Tools\Binn;c:\Program Files\Microsoft SQL Server\100\DTS\Binn;C:\Users\previtis\Documents\ant\bin;C:\Program Files\MySQL\MySQL Utilities 1.6;C:\Program Files\nodejs;C:\Program Files\Git\cmd;C:\Users\previtis\AppData\Local\Programs\Python\Python36-32\Scripts;C:\Users\previtis\AppData\Local\Programs\Python\Python36-32;C:\Users\previtis\AppData\Roaming\npm;C:\Program Files (x86)\Microsoft VS Code\bin
8 verbose lifecycle angular2-webpack-starter@5.0.5~prepare-android: CWD: C:\Users\previtis\Downloads\NativeScript-Projects\ng2-dashboard-master\ng2-dashboard-master
9 silly lifecycle angular2-webpack-starter@5.0.5~prepare-android: Args: [ ‘/d /s /c’,
9 silly lifecycle ‘npm run ns-clean && shx rm -rf platforms/android && tns prepare android --disable-npm-install’ ]
10 info lifecycle angular2-webpack-starter@5.0.5~prepare-android: Failed to exec prepare-android script
11 verbose stack Error: angular2-webpack-starter@5.0.5 prepare-android: npm run ns-clean && shx rm -rf platforms/android && tns prepare android --disable-npm-install
11 verbose stack spawn ENOENT
11 verbose stack at ChildProcess. (C:\Program Files\nodejs\node_modules\npm\lib\utils\spawn.js:33:16)
11 verbose stack at emitTwo (events.js:106:13)
11 verbose stack at ChildProcess.emit (events.js:191:7)
11 verbose stack at maybeClose (internal/child_process.js:886:16)
11 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:226:5)
12 verbose pkgid angular2-webpack-starter@5.0.5
13 verbose cwd C:\Users\previtis\Downloads\NativeScript-Projects\ng2-dashboard-master\ng2-dashboard-master
14 error Windows_NT 6.1.7601
15 error argv “C:\Program Files\nodejs\node.exe” “C:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js” “run” "prepare-android"
16 error node v6.10.3
17 error npm v3.10.10
18 error file C:\windows\system32\cmd.exe
19 error code ELIFECYCLE
20 error errno ENOENT
21 error syscall spawn
22 error angular2-webpack-starter@5.0.5 prepare-android: npm run ns-clean && shx rm -rf platforms/android && tns prepare android --disable-npm-install
22 error spawn ENOENT
23 error Failed at the angular2-webpack-starter@5.0.5 prepare-android script ‘npm run ns-clean && shx rm -rf platforms/android && tns prepare android --disable-npm-install’.
23 error Make sure you have the latest version of node.js and npm installed.
23 error If you do, this is most likely a problem with the angular2-webpack-starter package,
23 error not with npm itself.
23 error Tell the author that this fails on your system:
23 error npm run ns-clean && shx rm -rf platforms/android && tns prepare android --disable-npm-install
23 error You can get information on how to open an issue for this project with:
23 error npm bugs angular2-webpack-starter
23 error Or if that isn’t available, you can get their info via:
23 error npm owner ls angular2-webpack-starter
23 error There is likely additional logging output above.
24 verbose exit [ 1, true ]

additional outputs:
tns --version 3.0.0
this project doesn’t contain the file node_modules/tns-core-modules/package.json

thanks everybody for your help!