Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to fix this: The "sys" module is now called "util". It should have a similar interface.
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  8 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Neelesh Bafna  
View profile  
 More options Dec 12 2011, 1:55 am
From: Neelesh Bafna <nba...@syntactice.com>
Date: Mon, 12 Dec 2011 12:25:41 +0530
Local: Mon, Dec 12 2011 1:55 am
Subject: How to fix this: The "sys" module is now called "util". It should have a similar interface.

Using - node v0.6.4
--
Regards
Neelesh Bafna
-Have a great day-


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Isaac Schlueter  
View profile  
 More options Dec 12 2011, 2:03 am
From: Isaac Schlueter <i...@izs.me>
Date: Sun, 11 Dec 2011 23:03:28 -0800
Local: Mon, Dec 12 2011 2:03 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.
Replace all calls to `require("sys")` with `require("util")`


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
mscdex  
View profile  
 More options Dec 12 2011, 2:03 am
From: mscdex <msc...@gmail.com>
Date: Sun, 11 Dec 2011 23:03:40 -0800 (PST)
Local: Mon, Dec 12 2011 2:03 am
Subject: Re: How to fix this: The "sys" module is now called "util". It should have a similar interface.
Replace all instances of `require('sys')` with `require('util')`.

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Joshua Kehn  
View profile  
 More options Dec 12 2011, 2:11 am
From: Joshua Kehn <josh.k...@gmail.com>
Date: Mon, 12 Dec 2011 02:11:21 -0500
Local: Mon, Dec 12 2011 2:11 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.

I should write a script that does that for all existing npm modules…

Regards,

–Josh
____________________________________
Joshua Kehn | @joshkehn
http://joshuakehn.com

On Dec 12, 2011, at 2:03 AM, Isaac Schlueter wrote:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neelesh Bafna  
View profile  
 More options Dec 12 2011, 2:13 am
From: Neelesh Bafna <nba...@syntactice.com>
Date: Mon, 12 Dec 2011 12:43:46 +0530
Local: Mon, Dec 12 2011 2:13 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.

Ya got that point, but it requires to check all modules & do it manually...

was just hoping for some automatic fix...

--
Regards
Neelesh Bafna
-Have a great day-

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Neelesh Bafna  
View profile  
 More options Dec 12 2011, 2:16 am
From: Neelesh Bafna <nba...@syntactice.com>
Date: Mon, 12 Dec 2011 12:46:24 +0530
Local: Mon, Dec 12 2011 2:16 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.

because in error, it doesn't mention which module is doing require('sys')..

On Mon, Dec 12, 2011 at 12:43 PM, Neelesh Bafna <nba...@syntactice.com>wrote:

--
Regards
Neelesh Bafna
-Have a great day-

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Axel Kittenberger  
View profile  
 More options Dec 12 2011, 2:59 am
From: Axel Kittenberger <axk...@gmail.com>
Date: Mon, 12 Dec 2011 08:59:51 +0100
Local: Mon, Dec 12 2011 2:59 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.
grep -R "require.*sys" *


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Dec 12 2011, 8:03 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Mon, 12 Dec 2011 14:03:58 +0100
Local: Mon, Dec 12 2011 8:03 am
Subject: Re: [nodejs] How to fix this: The "sys" module is now called "util". It should have a similar interface.

On Mon, Dec 12, 2011 at 08:13, Neelesh Bafna <nba...@syntactice.com> wrote:
> Ya got that point, but it requires to check all modules & do it manually...

> was just hoping for some automatic fix...

Semi-automatic:

  NODE_DEBUG=sys node script.js

Makes Node print a stack trace that tells you where the sys module is
being included.

Fully automatic, potentially dangerous:

  perl -i -pe "s/require('sys')/require('util')/g" $(find . -name \*.js)


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »