Forums

install node.js and npm in a virtualenv

For some reason I am unable to find how to do this. Thx

Do you want to run a node.js server? We don't support that right now. But if you just want to use the npm/node stuff for running server-side CSS compilation or similar one-off tasks then it should all just work out of the box. We have node v0.10.33 and npm installed, and they should be accessible from inside virtualenvs.

It works!. Thx.

Thanks for confirming :-)

will it allow me to use node.js with socket.io to build a chatting app ?

No, we don't support node.js servers right now. We have node installed so that people can use some of its libraries, which some Python toolchains use for (for example) compiling things down to CSS.

Can you tell me if something like this http://gregblogs.com/how-django-reactjs-and-browserify/ is possible?

I am also getting tripped up on the purpose of bower in the context of a django project if you could enlighten me - thanks.

yup. that should be possible. think of bower just as a virtualenv pip install (it helps you download and install js packages). you don't necessarily need it if you just do a straightup npm install.

This thread cleared up my node.js question as well. I was trying to do a node server and it seemed to run in my shell, but couldn't be accessed. Since the service is called PythonAnywhere I could see how it is not the intent to run non-python hosts. Maybe open up another service called NodeJSAnywhere or even JavascriptAnywhere? (I was really surprised when npm and node worked in the console. THAT was unexpected!)

ok, stupid question: So I have a virtualenv setup, now I want to compile some sass, how do I invoke node v0.10.33?

Here you go

How can I use a node package from a console (e.g. yuglify) if npm does not allow me to install globally?

You can install locally into your own file storage. We recommend you use NVM to get the most recent production-ready Node version -- see this help page for details.

I've installed a nodejs lib called 'cordova' but.. it is unable to get installed in your bash console. Also.. will I be able to utilise its cli via python ?

What happens when you try to install it?

i want to install htmlt5qrscanner from npm how can this be done? -->npm i html5-qrcode

See this help page on how to install node.