ProgressNS / sidekick-feedback

This repository is for feedback regarding NativeScript Sidekick. Use the issues system here to submit feature requests or vote for existing ones.
45 stars 9 forks source link

iOS cloud build on windows error electron@1.7.16 postinstall and nodejs version #391

Closed nulele closed 5 years ago

nulele commented 5 years ago

Please, provide the details below:

Did you verify whether this issue has already been reported here?

Yes

Tell us about the problem

I'm trying to build on Cloud for iOS but I get the error below. Early my nodejs version was 10.16.0 and npm version was 6.9.2. Then I tried to downgrade and now my nodejs version is 9.11.2 and npm version is 5.6.0... but same error. No problem with Android build via usb with my Asus Zenfone with both versions of nodejs and npm.

this is my package.json file:

{
  "name": "app",
  "version": "0.0.1",
  "description": "App",
  "author": "###@###.###",
  "license": "MIT",
  "nativescript": {
    "id": "###.org.nativescript",
    "tns-ios": {
      "version": "5.4.2"
    },
    "tns-android": {
      "version": "5.4.0"
    }
  },
  "dependencies": {
    "@vue/devtools": "5.1.0",
    "axios": "0.19.0",
    "jwt-decode": "2.2.0",
    "nativescript-pulltorefresh": "2.2.2",
    "nativescript-socketio": "3.3.1",
    "nativescript-theme-core": "1.0.6",
    "nativescript-toasty": "1.3.1",
    "nativescript-ui-listview": "6.4.0",
    "nativescript-vue": "2.2.2",
    "nativescript-vue-devtools": "^1.2.0",
    "nativescript-vue-navigator": "0.0.3",
    "net": "^1.0.2",
    "tns-core-modules": "^5.4.3",
    "vuex": "3.1.1"
  },
  "devDependencies": {
    "@babel/core": "7.4.5",
    "@babel/preset-env": "7.4.5",
    "babel-loader": "8.0.6",
    "babel-traverse": "6.26.0",
    "babel-types": "6.26.0",
    "babylon": "6.18.0",
    "lazy": "1.0.11",
    "nativescript-dev-webpack": "^0.24.1",
    "nativescript-vue-template-compiler": "2.2.2",
    "node-sass": "4.12.0",
    "typescript": "^3.5.2",
    "vue-loader": "15.7.0"
  }
}

Which platform(s) does the issue occur on?

Windows 10

Provide the following version numbers that the issue occurs with:

Tell us how to recreate the issue in as much detail as possible

Run -> Build Target Platform = iOS Build type = Cloud Configuration = Debug Clean Build checked

Does this issue happen every time?

Yes (for iOS only)

Send the client logs

[19-06-28 21:10:12.760] Build failed. Build failed. Reason is: 'Build failed with error code 2'. Additional information: [00:00:28.922] [WARN]  Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output: 
 npm WARN npm npm does not support Node.js v10.16.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
node-pre-gyp WARN Using request for node-pre-gyp https download 
/private/tmp/builds/_/e183131912e0350f1007e8c358f065080303af3f/5.4.2/5.4.2/app/node_modules/@vue/devtools/node_modules/electron/install.js:48
  throw err
  ^
Error: EPERM: operation not permitted, mkdir '/Users/builder/.electron'
npm WARN app@0.0.1 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.7.16 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@1.7.16 postinstall 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/builder/.npm/_logs/2019-06-28T19_10_02_426Z-debug.log
[00:00:30.347] [ERROR] Unable to install dependencies. Make sure your package.json is valid and all dependencies are correct. Error is: Command npm failed with exit code 1 Error output: 
 npm WARN npm npm does not support Node.js v10.16.0
npm WARN npm You should probably upgrade to a newer version of node as we
npm WARN npm can't make any promises that npm will work with this version.
npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.
npm WARN npm You can find the latest version at https://nodejs.org/
node-pre-gyp WARN Using request for node-pre-gyp https download 
/private/tmp/builds/_/e183131912e0350f1007e8c358f065080303af3f/5.4.2/5.4.2/app/node_modules/@vue/devtools/node_modules/electron/install.js:48
  throw err
  ^
Error: EPERM: operation not permitted, mkdir '/Users/builder/.electron'
npm WARN app@0.0.1 No repository field.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! electron@1.7.16 postinstall: `node install.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the electron@1.7.16 postinstall 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/builder/.npm/_logs/2019-06-28T19_10_02_426Z-debug.log
'Build failed with error code 2'.
nulele commented 5 years ago

Found solution here: https://github.com/NativeScript/sidekick-feedback/issues/288