[Pkg-javascript-devel] Upgrade issues
Jérémy Lal
kapouer at melix.org
Thu Mar 29 08:43:58 UTC 2012
On 29/03/2012 10:34, Paul van Tilburg wrote:
> Hey,
>
> On Wed, Mar 28, 2012 at 12:06:15PM +0200, Jérémy Lal wrote:
>> On 28/03/2012 09:53, Paul van Tilburg wrote:
>> In node 0.6 all dependencies (modules) are available either globally
>> (that is when installed as a debian package) or locally (when installed by npm,
>> though it can be done by hand).
>> When installed locally, modules go to ./node_modules/
>> No more hidden folders or stuff in ~/
>
> Ok, but from my previous setup, connect-form is installed in
> ~/.node-modules, where the index.js loads stuff from ~/.npm.
> At the moment, it seems even that I can require the connect-form library,
> but using it gives the error below.
>
>>> ---
>>> $ node app.js
>>>
>>> node.js:201
>>> throw e; // process.nextTick error, or 'error' event on first tick
>>> ^
>>> Error: require.paths is removed. Use node_modules folders, or the
>>> NODE_PATH environment variable instead.
>>> at Function.<anonymous> (module.js:378:11)
>>> at Object.<anonymous> (/home/paul/.node_libraries/connect-form at 0.2.1/index.js:4:21)
>>> at Module._compile (module.js:441:26)
>>> at Object..js (module.js:459:10)
>>> at Module.load (module.js:348:32)
>>> at Function._load (module.js:308:12)
>>> at Module.require (module.js:354:17)
>>> at require (module.js:370:17)
>>> at Object.<anonymous> (/home/paul/Projects/plemp-node/app.js:12:12)
>>> at Module._compile (module.js:441:26)
>>> ---
>>>
>>> I assumed connect-form was broken for node > 0.6, however, I cannot
>>> upgrade it as npm also doesn't work:
>
> Do you suggest/imply to manually get a newer connect-form and put it
> manually in ./node_modules and remove ~/.npm and ~/.node_libraries?
Yes, that might be the simplest approach.
Or wait, because we might be able to upload npm package in a few days.
> I could also package the library, as there is no node form processing
> library in Debian yet. How do I go about it? I only found a Javascript
> policy wiki page.
Yes, and there are plenty of node-* packages as examples.
You can also talk with us on #debian-js if you need some help.
Jérémy.
More information about the Pkg-javascript-devel
mailing list