WebFaction
Community site: login faq

I want to use npm for one of my application.
As I notice, nodejs is already available by default, but not NPM. So, I've tried to install it with "curl -L https://npmjs.org/install.sh | sh" - and it looks like everything went OK (gist)
But 'npm' command is still unavailable in terminal.
My PATH variable has 'bin' folder with pointer to npm and it has permissions to be execute.
It installed in /home/<username>/webapps/<appname>/lib folder with pointer in /home/<username>/webapps/<appname>/bin folder.

How can I fix it to make it works?

UPD. It looks like node was installed as some dependency for part of app and it wasn't preinstalled. Installation of fresh node in home directory solved my problem with npm

asked 18 Aug '14, 17:05

fruityfree
2116
accept rate: 50%

edited 18 Aug '14, 18:25


For usage of NPM for non-nodejs app you can install NodeJS in home directory as described in this answer. New nodeJS packages goes with NPM installed

permanent link

answered 18 Aug '14, 18:24

fruityfree
2116
accept rate: 50%

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:

×34
×23
×9

question asked: 18 Aug '14, 17:05

question was seen: 5,515 times

last updated: 18 Aug '14, 18:25

WEBFACTION
REACH US
SUPPORT
AFFILIATE PROGRAM
LEGAL
© COPYRIGHT 2003-2019 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