WebFaction
Community site: login faq

I've set up a Node.js install using the setup tool in myWebfaction and am trying to get started with it. For the project I'm working on, I am using Grunt to build several files. I was able to install grunt using npm, but I can't seem to run it. In an ssh session, I've tried the following combinations of commands without success:

[XXX@web425 bin]$ grunt
-bash: grunt: command not found
[XXX@web425 bin]$ ./grunt
/usr/bin/env: node: No such file or directory
[graznar@web425 node_tracker]$ grunt
-bash: grunt: command not found

After some searching, I found this thread, which seems to suggest that the issue stems from the Node.js not being added to $PATH.

I haven't been able to locate where the Node.js binary is saved in order to fix this. Has anyone seen this or a similar issue? Is there any guidance on where the Node binary is located in order to test this solution? Thanks!

asked 08 Nov '13, 12:12

Sam Guzik
2538
accept rate: 0%


Before you attempt to run grunt or node or any other executables for your node app, set your PATH as follows:

cd ~/webapps/name_of_your_app
export PATH=$PWD/bin:$PATH

Hope that helps!

permanent link

answered 08 Nov '13, 12:31

seanf
12.2k42136
accept rate: 37%

That's great, thanks!

(08 Nov '13, 12:41) Sam Guzik

Was stuck trying to get Recess working via NPM. This saved me - thanks!

(11 Nov '13, 20:33) backlineint
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×67
×3

question asked: 08 Nov '13, 12:12

question was seen: 7,572 times

last updated: 11 Nov '13, 20:33

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM