Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [orion-dev] NPM support from within Orion node

Thanks, Libing.

This was my fault. I believe it's useful to have the ability to store the password outside of the install directory. There are potentially security reasons, but also just because you can blow the entire install away without having to re-edit the file to change the password.

McQ.

Inactive hide details for Libing Wang---2013/01/10 10:05:05---Sorry for the confusion but in my previous email I said " The preLibing Wang---2013/01/10 10:05:05---Sorry for the confusion but in my previous email I said " The previous -pwd option is gone".

From: Libing Wang/Ottawa/IBM@IBMCA
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>,
Cc: Orion developer discussions <orion-dev@xxxxxxxxxxx>, orion-dev-bounces@xxxxxxxxxxx
Date: 2013/01/10 10:05
Subject: Re: [orion-dev] NPM support from within Orion node
Sent by: orion-dev-bounces@xxxxxxxxxxx





Sorry for the confusion but in my previous email I said " The previous -pwd option is gone".
I just rolled back the -pwd option this morning after listening to some feedbacks. The pwd param in the conf file will just be ignored if you use a password file.


-Libing



Inactive hide details for Libing Wang---01/09/2013 05:32:46 PM---Hi: I've pushed the code to support NPM from within the Orion Libing Wang---01/09/2013 05:32:46 PM---Hi: I've pushed the code to support NPM from within the Orion node shell page.

From:
Libing Wang/Ottawa/IBM@IBMCA
To:
Orion developer discussions <orion-dev@xxxxxxxxxxx>
Cc:
Orion developer discussions <orion-dev@xxxxxxxxxxx>, orion-dev-bounces@xxxxxxxxxxx
Date:
01/09/2013 05:32 PM
Subject:
[orion-dev] NPM support from within Orion node
Sent by:
orion-dev-bounces@xxxxxxxxxxx




Hi:
I've pushed the code to support NPM from within the Orion node shell page.
Please follow steps 1 and 2 that Mark mentioned in the previous email. If you've already done step 3 before, you do not have to do it this time.

There are two more things to mention here in order to get NPM working. You only have to do it once.

1. There is a new file called server.conf file in the same folder where server.js lives, with the default contents as below. You may not have to change it but it worths double check.
pwd=
npm_path=../lib/node_modules/npm/bin/npm-cli.js


npm_path
 is the npm location that  Orion node uses to  support  NPM. If you installed a recent version of  nodejs the NPM should be installed automatically. The default value of npm_path should work in most of the cases.
If the npm_path does not match your npm location you can change it. The value can be either the relative path against your node executable  or absolute path.


pwd
 is the replacement of the previous -pwd option. The previous -pwd option is gone. The server is reading password from the server.conf file now. If you  want your server to auth a password, you can add a passowrd here.

2.After you start node server as Mark mentioned in step 5 in his previous email, you can go to shell page and type npm. You can use all the npm arguments as if you are using it in a normal way.
Hint: In shell page, use pwd command to see where you are, "npm install" without the -g option always installs stuff   under your pwd folder.

-Libing




Inactive hide details for Mark Macdonald ---01/03/2013 04:33:35 PM---Hi everyone, Prior to the holidays, we moved the Orionode Mark Macdonald ---01/03/2013 04:33:35 PM---Hi everyone, Prior to the holidays, we moved the Orionode project from GitHub into

From:
Mark Macdonald <mamacdon@xxxxxxxxx>
To:
Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date:
01/03/2013 04:33 PM
Subject:
[orion-dev] Orionode: dependencies are now installed automatically with npm
Sent by:
orion-dev-bounces@xxxxxxxxxxx




Hi everyone,

Prior to the holidays, we moved the Orionode project from GitHub into Orion's client git repo [1]. Due to some packaging issues with the fairly old version of Dojo required by Orion, some of Orionode's dependencies could not be installed through npm, so a manual copying step was required.

Dependency installation is now automatic. To install Orionode's dependencies, run the following steps on your copy of the orion client repo:
    1. Pull the latest code from master.
    2.
    Open a command shell in the org.eclipse.orion.client/modules/orionode directory.
    3.
    Run the command: npm install
    4.
    This will fetch and install the required dependencies. It will take a few minutes, but should only happen once.
    5.
    Launch the Orionode server as usual (eg. node server.js).


If you previously did a manual copy of the Dojo code into a folder like
org.eclipse.orion.client/modules/orionode/libs/dojo , you can now remove that folder.

Please keep in mind that this reliance on Dojo is temporary, and will go away once the library independence [2] work is finished.

On a side note, the most recent version of Orionode (0.0.7) available on the npm package registry is quite out of date. I've deprecated it with a message to that effect. We will publish version 0.0.8 as soon as possible, and I'll post a note on this list when it's ready.

[1]
http://git.eclipse.org/c/orion/org.eclipse.orion.client.git/
[2]
http://wiki.eclipse.org/Orion/Library_Independence
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/orion-dev
_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx

https://dev.eclipse.org/mailman/listinfo/orion-dev_______________________________________________
orion-dev mailing list
orion-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/orion-dev

GIF image


Back to the top