spectron icon indicating copy to clipboard operation
spectron copied to clipboard

npm install of spectron fails on node v14.0.0, mac osx 10.14.6

Open ivanixgames opened this issue 4 years ago • 13 comments

npm install --save-dev spectron fails when using node v14.0.0 on mac 10.14.6

[email protected] postinstall /Work/Projects/Patty/figma_plugin_ws/spectron/node_modules/core-js node -e "try{require('./postinstall')}catch(e){}"

[email protected] postinstall /Work/Projects/Patty/figma_plugin_ws/spectron/node_modules/spectron node lib/rpath-fix.js

npm WARN [email protected] No description npm WARN [email protected] No repository field.

npm ERR! code ELIFECYCLE npm ERR! errno 1 npm ERR! [email protected] postinstall: node lib/rpath-fix.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the [email protected] postinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

ivanixgames avatar Jun 09 '20 08:06 ivanixgames

I'm having this issue as well. Good to know its not just me.

AMDZEN3 avatar Jun 10 '20 02:06 AMDZEN3

Does anyone know of a work around for this? Its the only thing preventing us from updating to Electron 9.

AMDZEN3 avatar Jun 13 '20 13:06 AMDZEN3

Mee To

CodeRabbitYu avatar Jun 23 '20 05:06 CodeRabbitYu

Having the same issue, was about to post it when I saw this topic.

pethee avatar Jun 25 '20 16:06 pethee

We are actively troubleshooting this on a machine right now. Individual recently updated to Catalina. I realize the issue states for 10.14, but the error is the same and just stated for context.

Believe it to be related to not having xcode installed properly. From your terminal window, try running the command install_name_tool. If you receive a message about command line tools and missing xcrun, then see this blog: https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/

You might also try reinstalling full xcode: https://wilsonmar.github.io/xcode/

I have 10.14 on my mac with full xcode and not experiencing this issue.

ccsrvs avatar Jun 30 '20 13:06 ccsrvs

We are actively troubleshooting this on a machine right now. Individual recently updated to Catalina. I realize the issue states for 10.14, but the error is the same and just stated for context.

Believe it to be related to not having xcode installed properly. From your terminal window, try running the command install_name_tool. If you receive a message about command line tools and missing xcrun, then see this blog: https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/

You might also try reinstalling full xcode: https://wilsonmar.github.io/xcode/

I have 10.14 on my mac with full xcode and not experiencing this issue.

Thanks for the suggestion, but updating xcode on our machine doesn't seem to fix the issue.

AMDZEN3 avatar Jul 01 '20 18:07 AMDZEN3

We are actively troubleshooting this on a machine right now. Individual recently updated to Catalina. I realize the issue states for 10.14, but the error is the same and just stated for context. Believe it to be related to not having xcode installed properly. From your terminal window, try running the command install_name_tool. If you receive a message about command line tools and missing xcrun, then see this blog: https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/ You might also try reinstalling full xcode: https://wilsonmar.github.io/xcode/ I have 10.14 on my mac with full xcode and not experiencing this issue.

Thanks for the suggestion, but updating xcode on our machine doesn't seem to fix the issue.

Sorry. This worked for our issue. We fully uninstalled xcode and reinstalled 11.5 and it started working for us.

ccsrvs avatar Jul 01 '20 18:07 ccsrvs

This happened to me and my coworker. He has Node 14.0.0 and Mac OSX 10.15.4. And I have Node 14.0.0 and Mac OSX 10.15.3 (19D76).

And I didn't want to spend my time on version issues. So I downgraded my node to 13.12.0.

ckcks12 avatar Jul 04 '20 06:07 ckcks12

This happened to me and my coworker. He has Node 14.0.0 and Mac OSX 10.15.4. And I have Node 14.0.0 and Mac OSX 10.15.3 (19D76).

And I didn't want to spend my time on version issues. So I downgraded my node to 13.12.0.

Thank you! It didn't occur to me the version of Node.js was the issue. I upgraded from 14.0 to 14.5 and that did the trick.

AMDZEN3 avatar Jul 13 '20 23:07 AMDZEN3

I'm having this issue when using github actions with the macos-latest runner. I have npm setup with this step:

- name: Setup node
  uses: actions/setup-node@v1
  with:
    node-version: '12'
    registry-url: 'https://myregistry.com/company/'
    scope: myscope

It works when having the step as follows:

- name: Install node modules
  run: npm install

But fails when doing it like this:

- name: Install node modules
  run: npm install --ignore-scripts

- name: Run node post install scripts
  run: npm rebuild && npm run prepare --if-present

Splitting install into two steps is the recommended way to go when using private package registries so that scripts can't see the NPM_TOKEN env variable.

Valandur avatar Jul 28 '20 09:07 Valandur

We are actively troubleshooting this on a machine right now. Individual recently updated to Catalina. I realize the issue states for 10.14, but the error is the same and just stated for context.

Believe it to be related to not having xcode installed properly. From your terminal window, try running the command install_name_tool. If you receive a message about command line tools and missing xcrun, then see this blog: https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/

You might also try reinstalling full xcode: https://wilsonmar.github.io/xcode/

I have 10.14 on my mac with full xcode and not experiencing this issue.

I have the same issue with following versions; macOS catalina 14.15.6 node v12.18.3

After install the Xcode toolkit, issue is fixed. xcode-select --install

muzir avatar Aug 30 '20 20:08 muzir

Thank you

xcode-select --install

fixes this. It didn't take effect immediately, it works after a full restart.

linonetwo avatar Jun 17 '21 18:06 linonetwo

works for me

We are actively troubleshooting this on a machine right now. Individual recently updated to Catalina. I realize the issue states for 10.14, but the error is the same and just stated for context. Believe it to be related to not having xcode installed properly. From your terminal window, try running the command install_name_tool. If you receive a message about command line tools and missing xcrun, then see this blog: https://ma.ttias.be/mac-os-xcrun-error-invalid-active-developer-path-missing-xcrun/ You might also try reinstalling full xcode: https://wilsonmar.github.io/xcode/ I have 10.14 on my mac with full xcode and not experiencing this issue.

I have the same issue with following versions; macOS catalina 14.15.6 node v12.18.3

After install the Xcode toolkit, issue is fixed. xcode-select --install

Works for me, good solution 👍

mx51damon avatar Mar 29 '22 02:03 mx51damon