This post is to update my experiment on the Thinker Blinker project. Thus far, I had been trying to 'install' the appropriate node.js that are necessary for this project to work.
The first thing I need to make sure is the file being in the right folder. In the following picture, we can see that the file I wanted to run is called 'index.js' that is located in /Users/christinedinata/index.js. So I typed 'node index' on my terminal/command prompt page (read more from this post I uploaded previously) to call the file to get it running.
The first thing I need to make sure is the file being in the right folder. In the following picture, we can see that the file I wanted to run is called 'index.js' that is located in /Users/christinedinata/index.js. So I typed 'node index' on my terminal/command prompt page (read more from this post I uploaded previously) to call the file to get it running.
However, there are some 'errors' because it says that the computer can't find the osc module. Upon more research on how to handle this problem, it turns out another node is needed.
npm install node-osc (more information here)
But when I wanted to install this, there are a lot of issues and errors as well.
This prompt lead me to search more on why I can't install this node-osc.
This person had the same problem, and what he did was installing these other two dependencies.
npm install python
npm install node-gyp
And to install that smoothly, I was directed to another link, which explained how to install the node-gyp. This post lists out the things needed on the different operating systems. Listed on the MacOS list, there is another link that transfers you to another post if your macOS is macOS Catalina (v10.15) or above.
Now on this last link, the GitHub post explains installation notes for macOS Catalina (v10.15) which is my laptop. One of the struggles I faced on this post is that they recommend users to download an app called Xcode, which is a coding tool for developers. But my laptop's version is not compatible with the newest Xcode app that is available on the AppStore. So currently, I'm downloading everything needed to get this node-osc installation going.
Comments
Post a Comment