Skip to main content

Installing node-osc in npm (node.js)

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.

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

Popular posts from this blog

TouchDesigner Experiment: Inserting OSC data with OSCIn

From one of my last experiment , I tried to change the data input. Instead of using audio, I replaced it with OSC data from my Muse headset. To connect your OSC device to TouchDesigner, make sure that the IP address and port number is the same so the data transfer can be accurate. In this case, I use a third-party app called Mind Monitor (available on iOS devices) to connect my Muse headset to the TouchDesigner software. Below are screenshots and videos from my experiment. You can see that the brainwave data is already recorded in real-time in the software. Then I used the alpha, beta, and theta brainwave to change the movement of the visuals (the chosen brainwave data I used are just placeholders for now to see the movement). Then the data is connected with 'noise', which is like the fluid/abstract visuals you see on the background. I also set the colors to be moving/changing over time.

TouchDesigner Experiment: Audio Reactive Particle Cloud

My second experiment with TouchDesigner is creating this audio-reactive particle visual by following Bileam Tschepe 's tutorial on Youtube. Again, I just followed his tutorial step by step. This tutorial is a little different because it uses both audio and visuals. The visual follows the music in real-time. Other than audio, we are also introduced with the element 'Math' to add the channels of the audio together. This is the end product. Music is FriendsV2 by Muskatt.

Arduino Experiments (pt. 1)

Earlier this week, I bought my first Arduino Kit . Since this is week 6 of term, our lecturer has asked us to display an experiment by week 7. It could be any type of experiment, and it doesn't even have to be related to our project. The reason why I picked to try on Arduino is that I think it's the closest medium I'll be using for my actual work. But I was kind of worried about this, mainly it is because I've never used or tried it before. I've only heard about it but never actually played around with it. So this is the kit I bought. It costs SGD 70 at one of the shops in Sim Lim Tower. It contains a lot of items to try out experiments. It also includes several tutorial cards that can be successfully running with the items provided in the kit. For more detailed tutorials and the codes of each project, we are asked to go to their website and search for the complete step by step tutorials. Thus far, I have tried several projects, and for ...