ANN: npm version 0.1.19

6 views
Skip to first unread message

Isaac Schlueter

unread,
Jul 6, 2010, 3:09:47 PM7/6/10
to nod...@googlegroups.com
npm version 0.1.19

* tests! (bout damn time, I know, and still not very thorough coverage atm)
* adduser changed around to also auth existing users on a new machine,
and use prompts instead of positional args
* support for putting "username" and "password" in the .npmrc, and
then converting that to an "authCrypt"
* better config defaults to work better with nvm and nave (you'll have
to do "npm config delete root" to use the new default)
* clearer exit messaging (it should always now print either "ok" or
"not ok" as the last line)
* .npmignore file support
* link, install, and publish all default to ".", so you can just do
"npm publish" or "npm link" in the root of your project
* documented some planned functionality in doc/future-ideas. Ideas
and comments welcome.

To update or install the new version, do this:

curl http://npmjs.org/install.sh | sh

There is still a recurring issue with uploading tarballs from node to
nginx's HTTPS server. It seems like node sends all the data to the
buffer, but then the bytes never make it to nginx, and it eventually
dies with a 408 Request Timeout. I'm not sure exactly which end is
the problem, but I didn't want to delay fixing these other bugs. I
hope to have that resolved in 0.1.20, but I'm not completely sure of
that yet. If you run into that problem while publishing, you can do
this as a temporary (insecure!) workaround:

npm --registry http://registry.npmjs.org/ publish

I don't usually announce updates here, but a lot of bugs have been
fixed, thanks to a lot of feedback from everyone here, so it seems
relevant.

Note that it only works with node version 0.1.99 or higher. Hang on
tight, this is a fast ride!

--i

Jan Schütze

unread,
Jul 6, 2010, 3:17:09 PM7/6/10
to nod...@googlegroups.com
Hi,

thanks for the update!

Does this one depend on node >0.1.100?

I tried to update the 0.1.18 installation and get the following error:

/usr/local/lib/node/.npm/npm/0.1.19/package/lib/utils/exec.js:20
cp.stdout && cp.stdout.on("data", function (chunk) {
^
TypeError: Object #<a Stream> has no method 'on'

I guess this is because the on-replacement for addListener is not yet
introduced (or am I wrong?).

Regards,
Jan

> --
> You received this message because you are subscribed to the Google Groups "nodejs" group.
> To post to this group, send email to nod...@googlegroups.com.
> To unsubscribe from this group, send email to nodejs+un...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/nodejs?hl=en.
>
>

--

http://dracoblue.net

Marak Squires

unread,
Jul 6, 2010, 3:11:15 PM7/6/10
to nod...@googlegroups.com
Woot! Keep up the good work Isaac, you rock!

Isaac Schlueter

unread,
Jul 6, 2010, 4:00:44 PM7/6/10
to nod...@googlegroups.com
Jan,

It depends on node 0.1.99 and above. You should be able to install it
using the instructions in the original message. "npm install npm" or
just updating the code in place might not work properly, due to a few
changes in the API.

curl http://npmjs.org/install.sh | sh

If that doesn't work, then please send the entire log to
np...@googlegroups.com or post to http://github.com/isaacs/npm/issues
Thanks.

--i

2010/7/6 Jan Schütze <Ja...@dracoblue.de>:

Reply all
Reply to author
Forward
0 new messages