Arduino_firmata warning

Hello friends, i encounter such a problem when trying to install arduino-firmata with Manege-Palette. I need help

Hi @emrerdogan

Its in the error what you need to do.

  • Install python for OSX
    Use the universal installer, given you're using Apple Silicon

After install, run python --version in terminal to confirm install
or Evan run that before install, to confirm its really not installed already

Hi marcus, i did as you say and I ran into mistakes again.

2023-12-04T19:42:35.641Z Install : node-red-node-arduino 0.3.1

2023-12-04T19:42:35.662Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict node-red-node-arduino@0.3.1

2023-12-04T19:42:35.846Z [err] npm

2023-12-04T19:42:35.846Z [err] WARN config production Use --omit=dev instead.

2023-12-04T19:42:37.340Z [err] npm ERR! code 1

2023-12-04T19:42:37.340Z [err] npm ERR!

2023-12-04T19:42:37.340Z [err] path /Users/emreerdogan/.node-red/node_modules/@serialport/bindings

2023-12-04T19:42:37.340Z [err] npm

2023-12-04T19:42:37.340Z [err]

2023-12-04T19:42:37.340Z [err] ERR!

2023-12-04T19:42:37.340Z [err] command failed

2023-12-04T19:42:37.340Z [err] npm ERR! command sh -c prebuild-install --tag-prefix @serialport/bindings@ || node-gyp rebuild

2023-12-04T19:42:37.340Z [err] npm

2023-12-04T19:42:37.340Z [err] ERR! gyp info it worked if it ends with ok

2023-12-04T19:42:37.340Z [err] npm ERR! gyp info using node-gyp@10.0.1

2023-12-04T19:42:37.340Z [err] npm

2023-12-04T19:42:37.340Z [err] ERR! gyp info using node@20.10.0 | darwin | arm64

2023-12-04T19:42:37.340Z [err] npm ERR!

2023-12-04T19:42:37.340Z [err] gyp info find Python using Python version 3.12.0 found at "/usr/local/bin/python3"

2023-12-04T19:42:37.340Z [err] npm ERR!

2023-12-04T19:42:37.341Z [err] gyp info spawn /usr/local/bin/python3

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args [

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '/Users/emreerdogan/.node-red/node_modules/node-gyp/gyp/gyp_main.py',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args 'binding.gyp',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-f',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args 'make',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-I',

2023-12-04T19:42:37.341Z [err] npm

2023-12-04T19:42:37.341Z [err] ERR! gyp info spawn args '/Users/emreerdogan/.node-red/node_modules/@serialport/bindings/build/config.gypi',

2023-12-04T19:42:37.341Z [err] npm ERR!

2023-12-04T19:42:37.341Z [err] gyp info spawn args '-I',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '/Users/emreerdogan/.node-red/node_modules/node-gyp/addon.gypi',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-I',

2023-12-04T19:42:37.341Z [err] npm

2023-12-04T19:42:37.341Z [err] ERR! gyp info spawn args '/Users/emreerdogan/Library/Caches/node-gyp/20.10.0/include/node/common.gypi',

2023-12-04T19:42:37.341Z [err] npm ERR!

2023-12-04T19:42:37.341Z [err] gyp info spawn args '-Dlibrary=shared_library',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dvisibility=default',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dnode_root_dir=/Users/emreerdogan/Library/Caches/node-gyp/20.10.0',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dnode_gyp_dir=/Users/emreerdogan/.node-red/node_modules/node-gyp',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dnode_lib_file=/Users/emreerdogan/Library/Caches/node-gyp/20.10.0/<(target_arch)/node.lib',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dmodule_root_dir=/Users/emreerdogan/.node-red/node_modules/@serialport/bindings',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Dnode_engine=v8',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '--depth=.',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '--no-parallel',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '--generator-output',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args 'build',

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args '-Goutput_dir=.'

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args ]

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn make

2023-12-04T19:42:37.341Z [err] npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]

2023-12-04T19:42:37.341Z [err] npm ERR! xcrun: error: invalid active developer path (/Library/Developer/CommandLineTools), missing xcrun at: /Library/Developer/CommandLineTools/usr/bin/xcrun

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! build error

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! stack Error: make failed with exit code: 1

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! stack at ChildProcess. (/Users/emreerdogan/.node-red/node_modules/node-gyp/lib/build.js:209:23)

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! System Darwin 22.4.0

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! command "/usr/local/bin/node" "/Users/emreerdogan/.node-red/node_modules/.bin/node-gyp" "rebuild"

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! cwd /Users/emreerdogan/.node-red/node_modules/@serialport/bindings

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! node -v v20.10.0

2023-12-04T19:42:37.341Z [err] npm ERR!

2023-12-04T19:42:37.341Z [err] gyp ERR! node-gyp -v v10.0.1

2023-12-04T19:42:37.341Z [err] npm ERR! gyp ERR! not ok

2023-12-04T19:42:37.341Z [err]

2023-12-04T19:42:37.341Z [err] npm ERR!

2023-12-04T19:42:37.341Z [err] A complete log of this run can be found in: /Users/emreerdogan/.npm/_logs/2023-12-04T19_42_35_828Z-debug-0.log

2023-12-04T19:42:37.345Z rc=1

python is now found - so that's problem 1 resolved.
your next problem is some dev tools are missing (as things need to be compiled)

Try running this is terminal : xcode-select --install

once installed, try again.

Sadly the serilaport node that this module uses, is infamous for being a pain in the backside, so your results may vary.

EDIT

I also noticed your using Node 20.
I have a feeling serilaport 8.x.x may not support Node 20 - as that is the version being requested by firmata which is requested by node-red-node-arduino

I'll tag @dceejay for this one (sorry Dave)

:slight_smile: - just published arduino node version 1.0.0

1 Like

I did what they said and got results. Thank you very much Marcus, I wish you success:)

1 Like

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.