I’m having trouble installing the robotic add on with npm install. When I go through the process of installing the add on using npm install, it throws an error saying that it cannot find the folders “node-addon-api” and “napi-thread-safe-callback” under the node_modules folder.
I tried cloning the folder using both git and GitHub Desktop, and by just downloading it as a zip file, but all threw the same error. I’m running on macOS 10.15.4 (Catalina), node version 12.18.0, and npm version 6.14.5. Any ideas on how to fix this?
Yep! After re-installing the Command Line Tools, I deleted the node modules folder from robotic addons, restarted my terminal, and still got the error stack above.
Hi @valentin, I deleted and reinstalled the robotic add on, made sure that I saw the dependency reference to wedoboostpoweredup ^2.1.4, and then reinstalled xcode with the commands that Anna gave above, but the npm install still gives the same error as I was getting before.
I also checked my security preferences, but I don’t see anything that would be the issue there. I was also able to install the spatial core addons without an issue, so it seems to only be the robotic addon that’s giving me problems.
Can you type in your terminal node -v and tell me what version of node you’re seeing?
Apparently your compiler can not find node-addon-api and napi-thread-safe-callback in the global scope or it expects it to be in the local scope.
You could also try to install both in the local scope and see if this fixes the issue but let’s go step by step and first check if your node version is up to date.
I’m running Xcode 11.5, Build version 11E608c. I apparently didn’t have Xcode installed, just the command line tools, but I went and installed it and tried to do the npm install again, and I came up with the same error.