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

I just converted the readme to a new wiki section : http://wiki.eclipse.org/Orion/Getting_Started_with_Orion_node.
We will keep updating this page.

As our node work is still in progress, John will finalize it in RC1.

Libing


Inactive hide details for John Arthorne---01/11/2013 01:56:49 PM---Using the readme is a fine place for now, so go ahead and puJohn Arthorne---01/11/2013 01:56:49 PM---Using the readme is a fine place for now, so go ahead and put updates in  there. Since it's no longe

From: John Arthorne/Ottawa/IBM@IBMCA
To: Orion developer discussions <orion-dev@xxxxxxxxxxx>
Date: 01/11/2013 01:56 PM
Subject: Re: [orion-dev] NPM support from within Orion node
Sent by: orion-dev-bounces@xxxxxxxxxxx





Using the readme is a fine place for now, so go ahead and put updates in there. Since it's no longer at the root of a git repo it's a little hard to discover though, so I will look at converting to real documentation closer to release. I've created a bug for that so I don't forget: 

https://bugs.eclipse.org/bugs/show_bug.cgi?id=398001 



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/11/2013 11:47 AM 
Subject:        
Re: [orion-dev] NPM support from within Orion node 
Sent by:        
orion-dev-bounces@xxxxxxxxxxx 




We already have a readme file in the repo, I can add the npm config stuff over there for now.
If we are going to have a separate wiki page later, we can try to reorganize the contents and convert that into the new wiki section.

-Libing



Inactive hide details for Ken Walker---01/11/2013 09:33:08 AM---Good point, I think we need to document it separately but link Ken Walker---01/11/2013 09:33:08 AM---Good point, I think we need to document it separately but link it from the Java server document.

From:
Ken Walker/Ottawa/IBM@IBMCA
To:
Orion developer discussions <orion-dev@xxxxxxxxxxx>
Cc:
Orion developer discussions <orion-dev@xxxxxxxxxxx>, orion-dev-bounces@xxxxxxxxxxx
Date:
01/11/2013 09:33 AM
Subject:
Re: [orion-dev] NPM support from within Orion node
Sent by:
orion-dev-bounces@xxxxxxxxxxx




Good point, I think we need to document it separately but link it from the Java server document.

Ken Walker
Co-Lead Eclipse Orion Project | Tools for the Web, On the Web

http://orionhub.org | http://wiki.eclipse.org/Orion
@k_e_n__w | @orionhub





Inactive hide details for John Arthorne---2013/01/11 09:29:37 AM---Are all these configuration steps documented somewhere otherJohn Arthorne---2013/01/11 09:29:37 AM---Are all these configuration steps documented somewhere other than these  emails? When I go to try th 

    From:
     

    John Arthorne/Ottawa/IBM@IBMCA
     

    To:
     

    Orion developer discussions <orion-dev@xxxxxxxxxxx>,

    Date:
     

    2013/01/11 09:29 AM
     

    Subject:
     

    Re: [orion-dev] NPM support from within Orion node
     

    Sent by:
     

    orion-dev-bounces@xxxxxxxxxxx





Are all these configuration steps documented somewhere other than these emails? When I go to try this in a week or two I'm sure I'll have forgotten where to find the info (and it will have probably changed by then). Should this be a section in the Orion server admin guide, or maybe we need to split into two server guides for Java vs node servers?
 

http://wiki.eclipse.org/Orion/Server_admin_guide 

John
 



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_______________________________________________
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

GIF image


Back to the top