1

I have a Pi 2, (Model B) with Windows 10 installed on it. I would like to write a simple program according to this tutorial.

In the tutorial there are some npm configurations, where they write that I need to make sure I have node.js installed. Now, I am not sure that I need to install node.js and npm on my Pi. (Maybe I am misunderstanding). But, if I do - how do I do it? I couldn't find any instructions, and it's not like I have a web browser on my Pi.

P.S - I am VERY new to the whole Pi/IoT stuff, so please be gentle with me.

Darth Vader
4,21824 gold badges47 silver badges71 bronze badges
asked May 29, 2017 at 9:13

1 Answer 1

1

Node.js consists of two parts, the server side and the package manager (npm)

When working with node in visual studio, you typically use npm to install node packages, that are bundled with your project and deployed to the Pi IoT as a .NET application.

A node server, can also be deployed to the Pi, by adding the correct nuget package into your project.

You can install Node on a server and let the application download dependencies as it needs it but with Windows IoT you need to bundle the Node dependencies with the project, build and deploy it.

It also depends on the type of application you start of with and also you can mix and match project types - But deployment becomes a bit more complicated.

answered May 31, 2017 at 14:29

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.