In the process of desktop packaging, encountered the following error:
0 Info It worked if it ends with Ok1 verbose CLI [' C:\\Program Files\\nodejs\\node.exe ', 1 verbose CLI ' c:\\users\\admin Istrator\\appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js ', 1 verbose cli ' start ']2 info using [email protected]3 info using [email protected]4 verbose run-script [' Prestart ', ' Start ', ' Poststart ']5 info lifecycle [em Ail protected]~prestart: [Email protected]6 silly Lifecycle [Email protected]~prestart:no script for Prestart, Continuing7 info lifecycle [email protected]~start: [email protected]8 verbose lifecycle [email protected]~start:unsafe-perm in lifecycle true9 verbose lifecycle [email protected]~start:path:c:\users\ Administrator\appdata\roaming\npm\node_modules\npm\bin\node-gyp-bin; E:\CodeSpace\SCM_TEST\desktop\node_modules\.bin; C:\Program Files\nodejs; C:\ProgramData\Oracle\Java\javapath; C:\WINDOWS\system32; C:\WINDOWS; C:\WINDOWS\System32\Wbem; C:\WINDOWS\System32\WindowsPowerShell\v1.0\; C:\Program\Java\jdk1.8.0_91\bin; C:\Program\ANT\apache-ant-1.9.7\bin; C:\Program files\nodejs\; C:\Program Files\git\cmd; C:\Program Files\git\mingw64\bin; C:\Program Files\git\usr\bin; C:\Program\DicomViewer\WanLiYunDiagonse\Bin; C:\USERS\ADMINISTRATOR\APPDATA\ROAMING\NPM; C:\Python27; C:\PROGRAM\DICOMVIEWER\WANLIYUNDIAGONSE\BIN10 Verbose lifecycle [EMAIL&NBSP;PROTECTED]~START:CWD:E:\CODESPACE\SCM _TEST\DESKTOP11 Silly Lifecycle [Email protected]~start:args: ['/d/s/C ', ' electron app ']12 silly lifecycle [emai L protected]~start:returned:code:1 signal:null13 Info Lifecycle [email protected]~start:failed to exec STA RT script14 Verbose Stack Error: [email protected] Start: ' electron app ' verbose stack Exit status verbose stac K at Eventemitter.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\utils\ lifecycle.js:242:16) verbose stack at Emittwo (events.js:106:13), verbose stack at Eventemitter.emit (events.js : 191:7) verboseStack at childprocess.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\utils\ spawn.js:40:14) verbose stack at Emittwo (events.js:106:13), verbose stack at Childprocess.emit (events.js:191: 7) verbose stack at Maybeclose (internal/child_process.js:852:16), verbose stack at Process.childprocess._handl E.onexit (internal/child_process.js:215:5) verbose pkgid [email protected]16 verbose CWD E:\CodeSpace\SCM_TEST \DESKTOP17 error windows_nt 10.0.1058618 error argv "C:\\Program Files\\nodejs\\node.exe" "c:\\users\\administrator\\ Appdata\\roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js "Start" Error node v6.3.020 error NPM v3.10.521 error code ELIFECYCLE22 error [email protected] start: ' Electron app ' ERROR Exit status 123 error Failed at the [EMAIL&NBSP;PR Otected] Start script ' electron app '. "Error make sure you have the latest version of node. js and NPM installed.23 error If You do, this is the most likely a problem wITH the Lifeccp-desktop package,23 error not with NPM itself.23 error tell the author that this fails on your system:23 er Ror Electron app23 error can get information on what to open a issue for this project with:23 error NPM Bugs L IFECCP-DESKTOP23 error Or if that isn ' t available, you can get their info via:23 error NPM owner LS lifeccp-desktop23 Error there is likely additional logging output above.24 verbose exit [1, True]
See StackOverflow above http://stackoverflow.com/questions/35040729/ running-npm-install-g-yo-command-gives-npm-err-windows-nt-6-1-7601/35043377#35043377 has this workaround:
Solved the issue on Windows 8.1
- Go to your Nodejs install (usually C:\Program Files\nodejs)
- Right click Node_modules folder and go to properties
- Click the Security tab and advanced
- At the top you'll see "Owner:system". Click change.
- Enter the user want permissions for and click OK
- Check the box at the bottom of the settings "Replace all child object permission entries with inheritable Permiss Ion entries from this object "and click OK
- Do whatever npm install/update you need
Attempt, but not resolved, to try another method;
NPM Packaging Electron App error problem