question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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

See original GitHub issue

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

core-js@3.6.5 postinstall /Work/Projects/Patty/figma_plugin_ws/spectron/node_modules/core-js node -e “try{require(‘./postinstall’)}catch(e){}”

spectron@11.0.0 postinstall /Work/Projects/Patty/figma_plugin_ws/spectron/node_modules/spectron node lib/rpath-fix.js

npm WARN spectron-demo@1.0.0 No description npm WARN spectron-demo@1.0.0 No repository field.

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

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:9
  • Comments:13

github_iconTop GitHub Comments

3reactions
muzircommented, Aug 30, 2020

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

2reactions
ccsrvscommented, Jun 30, 2020

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

NPM, Node fail to open after upgrade to Mojave 10.14.6
I ran brew style and then brew update-reset and homebrew started working again. Then, brew reinstall node got everything working once more.
Read more >
Steps to solve Node.js — NPM — Installation Issue in Mac OS ...
Here is the list of steps i have done to finally compile my node modules properly and make the node.js project start. Step...
Read more >
How To Update Node.js on MacOS: Hindsight on Old Mac
Now consider a case for updating Node.js (and subsequently npm) ... Option 1: Download the installer from nodejs.org and install the binary.
Read more >
How to Install Node on a MacOS, Linux, or Windows Machine ...
Fortunately, installing NodeJS is super simple. In this tutorial we will cover how to install NodeJS/NPM in * macOS/linux * Windows Once you ......
Read more >
Installing Node.js® and NPM on Mac
What's Node.js® and NPM?Node.js® is a JavaScript-based environment which you can use to create web-servers and networked applications. You can also use it ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found