[Pkg-javascript-devel] Upgrade issues

Jérémy Lal kapouer at melix.org
Wed Mar 28 10:06:15 UTC 2012


On 28/03/2012 09:53, Paul van Tilburg wrote:
> Hi all,
> 
> Before I want to file appropriate bug reports, I wanted to check in here first.
> I have been working on a Node Express app that uses the connect-form library.
> I am planning to package this soon when I have the time.  But I still
> have an issue:
> With the upload of nodejs 0.6 and dependant libraries my setup has
> completely broken.  As I am very new to (node.)js I am not sure what is
> going on.

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 ~/

> ---
>   $ 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:

npm debian package required a lot of work, and hasn't been updated
for such a while that it is now completely useless, see #622628.

Jérémy.





More information about the Pkg-javascript-devel mailing list