mac pc 运行没问题,打包报错

wumx 2020-8-24 913

95% emittingError: EACCES: permission denied, open '/data/git/yehuo/pc-chat-master/dist/marswrapper.node' npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! wildfireChat@0.3.4 build-main: cross-env NODE_ENV=production node -r babel-register ./node_modules/webpack/bin/webpack --config ./config/webpack.config.electron.js --progress --profile --colors npm ERR! Exit status 1 npm ERR!  npm ERR! Failed at the wildfireChat@0.3.4 build-main script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!     /Users/meixuan/.npm/_logs/2020-08-24T06_06_26_928Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! wildfireChat@0.3.4 build: node scripts/del.js dist && npm run build-main && npm run build-renderer npm ERR! Exit status 1 npm ERR!  npm ERR! Failed at the wildfireChat@0.3.4 build script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!     /Users/meixuan/.npm/_logs/2020-08-24T06_06_26_950Z-debug.log npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! wildfireChat@0.3.4 package-mac: npm run copy-mac && npm run build && node scripts/del.js release && export CSC_IDENTITY_AUTO_DISCOVERY=false && electron-builder --mac --projectDir ./dist -p never npm ERR! Exit status 1 npm ERR!  npm ERR! Failed at the wildfireChat@0.3.4 package-mac script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in: npm ERR!     /Users/meixuan/.npm/_logs/2020-08-24T06_06_26_967Z-debug.log localhost:pc-chat-master meixuan$

最新回复 (2)
  • wumx 2020-8-24
    引用 2
    @官方
  • HeavyRain 2020-8-25
    引用 3
    看错误提示有“permission denied“,是不是某些步骤用了sudo,导致某些文件没有权限?请删除临时文件目录(如果不清楚,可以重新下载代码),然后所有执行操作都不要带sudo

    如果还不行,请仔细检查一下项目readme的说明,严格按照要求转变环境和执行每一步骤
返回