在进行desktop打包过程中,遇到如下报错:

  1. 0 info it worked if it ends with ok
  2. 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe',
  3. 1 verbose cli 'C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js',
  4. 1 verbose cli 'start' ]
  5. 2 info using npm@3.10.5
  6. 3 info using node@v6.3.0
  7. 4 verbose run-script [ 'prestart', 'start', 'poststart' ]
  8. 5 info lifecycle lifeccp-desktop@1.1.9~prestart: lifeccp-desktop@1.1.9
  9. 6 silly lifecycle lifeccp-desktop@1.1.9~prestart: no script for prestart, continuing
  10. 7 info lifecycle lifeccp-desktop@1.1.9~start: lifeccp-desktop@1.1.9
  11. 8 verbose lifecycle lifeccp-desktop@1.1.9~start: unsafe-perm in lifecycle true
  12. 9 verbose lifecycle lifeccp-desktop@1.1.9~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\Bin
  13. 10 verbose lifecycle lifeccp-desktop@1.1.9~start: CWD: E:\CodeSpace\SCM_TEST\desktop
  14. 11 silly lifecycle lifeccp-desktop@1.1.9~start: Args: [ '/d /s /c', 'electron app' ]
  15. 12 silly lifecycle lifeccp-desktop@1.1.9~start: Returned: code: 1 signal: null
  16. 13 info lifecycle lifeccp-desktop@1.1.9~start: Failed to exec start script
  17. 14 verbose stack Error: lifeccp-desktop@1.1.9 start: `electron app`
  18. 14 verbose stack Exit status 1
  19. 14 verbose stack at EventEmitter.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\utils\lifecycle.js:242:16)
  20. 14 verbose stack at emitTwo (events.js:106:13)
  21. 14 verbose stack at EventEmitter.emit (events.js:191:7)
  22. 14 verbose stack at ChildProcess.<anonymous> (C:\Users\Administrator\AppData\Roaming\npm\node_modules\npm\lib\utils\spawn.js:40:14)
  23. 14 verbose stack at emitTwo (events.js:106:13)
  24. 14 verbose stack at ChildProcess.emit (events.js:191:7)
  25. 14 verbose stack at maybeClose (internal/child_process.js:852:16)
  26. 14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
  27. 15 verbose pkgid lifeccp-desktop@1.1.9
  28. 16 verbose cwd E:\CodeSpace\SCM_TEST\desktop
  29. 17 error Windows_NT 10.0.10586
  30. 18 error argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Users\\Administrator\\AppData\\Roaming\\npm\\node_modules\\npm\\bin\\npm-cli.js" "start"
  31. 19 error node v6.3.0
  32. 20 error npm v3.10.5
  33. 21 error code ELIFECYCLE
  34. 22 error lifeccp-desktop@1.1.9 start: `electron app`
  35. 22 error Exit status 1
  36. 23 error Failed at the lifeccp-desktop@1.1.9 start script 'electron app'.
  37. 23 error Make sure you have the latest version of node.js and npm installed.
  38. 23 error If you do, this is most likely a problem with the lifeccp-desktop package,
  39. 23 error not with npm itself.
  40. 23 error Tell the author that this fails on your system:
  41. 23 error electron app
  42. 23 error You can get information on how to open an issue for this project with:
  43. 23 error npm bugs lifeccp-desktop
  44. 23 error Or if that isn't available, you can get their info via:
  45. 23 error npm owner ls lifeccp-desktop
  46. 23 error There is likely additional logging output above.
  47. 24 verbose exit [ 1, true ]

看到 stackoverflow 上面 http://stackoverflow.com/questions/35040729/running-npm-install-g-yo-command-gives-npm-err-windows-nt-6-1-7601/35043377#35043377 有这个解决办法:

This is how I 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 will see "Owner: SYSTEM". Click change.
  • Enter the user you want permissions for and click ok
  • Check the box at the bottom of the advanced settings "Replace all child object permission entries with inheritable permission entries from this object" and click ok
  • Do whatever npm install/update you need

(另一个关于electron的问题:http://www.cnblogs.com/haochuang/p/5688093.html)

用该办法尝试,但未解决,再次尝试其他办法;

npm 打包 electron app 报错问题的更多相关文章

  1. webpack配置自动打包重新运行npm run dev出现报错

    webpack配置自动打包重新运行npm run dev出现报错 运行npm run dev出现如下报错 Listening at http://localhost:8080(node:2328) U ...

  2. Linux下Electron loadURL报错 ERR_FAILED(-2) Not allowed to load local resource

    Linux下Electron loadURL报错 ERR_FAILED(-2) Not allowed to load local resource 背景 使用electron-vue的时候,窗体创建 ...

  3. 【问题与解决】Mac OS通过 npm 安装 React Native 报错(checkPermissions Missing write access to /usr/local/lib/node_modules)

    报错情况: 当Mac OS通过 npm 安装 React Native 报错,警告文字为:checkPermissions Missing write access to /usr/local/lib ...

  4. 解决Homestead yarn , npm run dev, 命令报错问题!

    解决Homestead yarn , npm run dev, 命令报错问题! 2018年06月01日 11:50:51 偶尔发发颠 阅读数:1654    版权声明:本文为博主原创,未经博主同意,不 ...

  5. npm install的时候报错 npm err code 1

    在学习vue的时候,npm install的时候报错  npm err code 1,当时很郁闷,是‘vue init webpack my-project’命令新建的模版项目 ,怎么会报错,第一次遇 ...

  6. Vue项目中执行npm run dev 不报错也不显示点击的地址链接

    问题描述: 输入npm run dev 没有报错也没有显示可以点击的地址链接,如下图: 解决方法: 具体配置: autoOpenBrowser默认为false,改为true.重新 npm run de ...

  7. npm install命令遇到relocation error: npm: symbol SSL_set_cert_cb的报错问题

    在安装elasticsearch-head的过程中npm install遇到如下报错 [root@localhost elasticsearch-head]# npm install npm: rel ...

  8. npm安装cnpm时候报错code EINTEGRITY

    npm安装cnpm时候报错code EINTEGRITY错误展示 PS C:\Users\by\Desktop\element_ui_demo> npm install --g  npmnpm ...

  9. 解决 npm run dev b报错 “'webpack-dev-server' 不是内部或外部命令,也不是可运行的程序 或批处理文件。”

    摘自:https://www.cnblogs.com/laraLee/p/9174383.html 前提: 电脑已经安装了nodeJS和npm,  项目是直接下载的zip包. 在项目目录下运行“npm ...

随机推荐

  1. Thinking In Java 读书笔记

    面向对象语言,五个基本特性: 1)万物皆为对象. 2)程序是对象的集合,他们通过发送消息来告知彼此所要做的. 3)每个对象都有自己的由其他对象所构成的存储. 4)每个对象都拥有其类型.即:每个对象都是 ...

  2. VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装

    VMware中安装CentOS7网络配置静态IP地址,常用配置和工具安装在阿里云开源镜像地址下载镜像Index of /centos/7.2.1511/isos/x86_64/http://mirro ...

  3. webapi获取请求地址的IP

    References required: HttpContextWrapper - System.Web.dll RemoteEndpointMessageProperty - System.Serv ...

  4. javascript 金额格式化

    金额格式化 example: <!DOCTYPE html> <html> <head> <script src="http://code.jque ...

  5. oracle 导出表结构和数据,使用plsql

    比如说需要把A数据库里面的数据,导入到B数据库 准备工作:在B数据库中创建B数据库同名的的用户名和表空间,注意大小写必须一样. 1,导出表结构.A数据库里点击工具栏里的tools--Export Us ...

  6. 安装keepalived

    主机名  网络IP                     VIPnode1 192.168.2.161     192.168.2.165node2 192.168.2.162 [root@node ...

  7. 使用phpmyadmin导入SQL数据报错:#1062 - Duplicate entry '...

    使用phpmyadmin导入SQL数据报错: MySQL 返回: #1062 - Duplicate entry '0' for key 'PRIMARY' 出现此错误的原因是数据的主键重复了,错误信 ...

  8. js 判断某个对象是不是dom对象

    <script type="text/javascript">//首先要对HTMLElement进行类型检查,因为即使在支持HTMLElement的浏览器中,类型却是有 ...

  9. java 面试每日一题6

    题目:古典问题:有一对兔子,从出生后第3个月起每个月都生一对兔子,小兔子长到第三个月后每个月又生一对兔子,假如兔子都不死,问每个月的兔子总数为多少? 1.程序分析: 兔子的规律为数列1,1,2,3,5 ...

  10. malloc与kmalloc

    在设备驱动程序中动态开辟内存,不是用malloc,而是kmalloc,或者用get_free_pages直接申请页.释放内存用的是kfree,或free_pages. 对于提供了MMU(存储管理器,辅 ...