(I am an integrator) Demo Application: https://developers.blockapps.net/advanced/blockapps-ba/


#1

I have hit a problem with installing the demo application on Windows.

When I get to the step:
Run the following from the project root
set “SERVER=localhost” & npm run deploy-windows

This fails to execute wheter I execute from a cmd prompt or through git-bash …

Also it is unclear if this is one command or 2…but it still fails if I execute set “SERVER=localhost” as one command and then follow with npm run deploy-windows. If it is supposed to be 2 independent commands then you should have put it that way.

Here is my error log:
0 info it worked if it ends with ok
1 verbose cli [ ‘C:\nodejs\node.exe’,
1 verbose cli ‘C:\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘deploy-windows’ ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ ‘predeploy-windows’, ‘deploy-windows’, ‘postdeploy-windows’ ]
5 info lifecycle [email protected]~predeploy-windows: [email protected]
6 info lifecycle [email protected]~deploy-windows: [email protected]
7 verbose lifecycle [email protected]~deploy-windows: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~deploy-windows: PATH: C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\David Delaney\blockapps-ba\node_modules.bin;C:\Users\David Delaney\bin;C:\Git4Windows\Git\mingw64\bin;C:\Git4Windows\Git\usr\local\bin;C:\Git4Windows\Git\usr\bin;C:\Git4Windows\Git\usr\bin;C:\Git4Windows\Git\mingw64\bin;C:\Git4Windows\Git\usr\bin;C:\Users\David Delaney\bin;C:\Notepadpp;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\RSA SecurID Token Common;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;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 (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\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Common Files\Lenovo;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Sennheiser\SoftphoneSDK;C:\Program Files\PuTTY;C:\Notepadpp;C:\Program Files\Perforce;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\nodejs;C:\Notepadpp;C:\Users\David Delaney\AppData\Local\Programs\Fiddler;C:\Program Files\Docker Toolbox;C:\Users\David Delaney\AppData\Local\GitHubDesktop\bin;C:\Users\David Delaney\AppData\Roaming\npm;C:\Git4Windows\Git\usr\bin\vendor_perl;C:\Git4Windows\Git\usr\bin\core_perl
9 verbose lifecycle [email protected]~deploy-windows: CWD: C:\Users\David Delaney\blockapps-ba
10 silly lifecycle [email protected]~deploy-windows: Args: [ ‘/d /s /c’,
10 silly lifecycle ‘mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b’ ]
11 silly lifecycle [email protected]~deploy-windows: Returned: code: 1 signal: null
12 info lifecycle [email protected]~deploy-windows: Failed to exec deploy-windows script
13 verbose stack Error: [email protected] deploy-windows: mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess. (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\David Delaney\blockapps-ba
16 verbose Windows_NT 6.1.7601
17 verbose argv “C:\nodejs\node.exe” “C:\nodejs\node_modules\npm\bin\npm-cli.js” “run” “deploy-windows”
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] deploy-windows: mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b
22 error Exit status 1
23 error Failed at the [email protected] deploy-windows script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]

Assistance/advice is most welcome.

Thank you.

-dd


#2

Hi, we’ve received your question and will reply shortly.


#3

Ok I have installed latest node.js…and I have git for windows installed…within Git for Windows the “set” command does not work…so “set SERVER=localhost” does not work. I got around this by setting the environmental variable in control panel system…

Now I am getting the following error when issuing:npm run deploy-windows

0 info it worked if it ends with ok
1 verbose cli [ ‘C:\nodejs\node.exe’,
1 verbose cli ‘C:\nodejs\node_modules\npm\bin\npm-cli.js’,
1 verbose cli ‘run’,
1 verbose cli ‘deploy-windows’ ]
2 info using [email protected]
3 info using [email protected]
4 verbose run-script [ ‘predeploy-windows’, ‘deploy-windows’, ‘postdeploy-windows’ ]
5 info lifecycle [email protected]~predeploy-windows: [email protected]
6 info lifecycle [email protected]~deploy-windows: [email protected]
7 verbose lifecycle [email protected]~deploy-windows: unsafe-perm in lifecycle true
8 verbose lifecycle [email protected]~deploy-windows: PATH: C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\Users\David Delaney\blockapps-ba\node_modules.bin;C:\Users\David Delaney\bin;C:\Git4Windows\Git\mingw64\bin;C:\Git4Windows\Git\usr\local\bin;C:\Git4Windows\Git\usr\bin;C:\Git4Windows\Git\usr\bin;C:\Git4Windows\Git\mingw64\bin;C:\Git4Windows\Git\usr\bin;C:\Users\David Delaney\bin;C:\Notepadpp;C:\oraclexe\app\oracle\product\11.2.0\server\bin;C:\Program Files (x86)\RSA SecurID Token Common;C:\Program Files\RSA SecurID Token Common;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;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 (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\Intel\WiFi\bin;C:\Program Files\Common Files\Intel\WirelessCommon;C:\Program Files (x86)\Common Files\Lenovo;C:\ProgramData\Lenovo\ReadyApps;C:\Program Files (x86)\Sennheiser\SoftphoneSDK;C:\Program Files\PuTTY;C:\Notepadpp;C:\Program Files\Perforce;C:\Program Files\IDM Computer Solutions\UltraEdit;C:\nodejs;C:\Notepadpp;C:\Users\David Delaney\AppData\Local\Programs\Fiddler;C:\Program Files\Docker Toolbox;C:\Users\David Delaney\AppData\Local\GitHubDesktop\bin;C:\Users\David Delaney\AppData\Roaming\npm;C:\Git4Windows\Git\usr\bin\vendor_perl;C:\Git4Windows\Git\usr\bin\core_perl
9 verbose lifecycle [email protected]~deploy-windows: CWD: C:\Users\David Delaney\blockapps-ba
10 silly lifecycle [email protected]~deploy-windows: Args: [ ‘/d /s /c’,
10 silly lifecycle ‘mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b’ ]
11 silly lifecycle [email protected]~deploy-windows: Returned: code: 1 signal: null
12 info lifecycle [email protected]~deploy-windows: Failed to exec deploy-windows script
13 verbose stack Error: [email protected] deploy-windows: mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b
13 verbose stack Exit status 1
13 verbose stack at EventEmitter. (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:301:16)
13 verbose stack at EventEmitter.emit (events.js:189:13)
13 verbose stack at ChildProcess. (C:\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
13 verbose stack at ChildProcess.emit (events.js:189:13)
13 verbose stack at maybeClose (internal/child_process.js:970:16)
13 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
14 verbose pkgid [email protected]
15 verbose cwd C:\Users\David Delaney\blockapps-ba
16 verbose Windows_NT 6.1.7601
17 verbose argv “C:\nodejs\node.exe” “C:\nodejs\node_modules\npm\bin\npm-cli.js” “run” “deploy-windows”
18 verbose node v10.15.3
19 verbose npm v6.4.1
20 error code ELIFECYCLE
21 error errno 1
22 error [email protected] deploy-windows: mocha server/dapp/dapp.deploy.js --config server/config/%SERVER%.config.yaml -b
22 error Exit status 1
23 error Failed at the [email protected] deploy-windows script.
23 error This is probably not a problem with npm. There is likely additional logging output above.
24 verbose exit [ 1, true ]