Commit Graph

84 Commits

Author SHA1 Message Date
isaacs
f8172df2b4 Put npm-debug.log file in a consistent place 2014-05-13 11:05:55 -07:00
isaacs
1053c97891 bump tap dep, make tests stderr a bit quieter 2014-04-28 16:30:01 -07:00
isaacs
2241a09c84 view: handle unpublished packages properly 2014-04-12 18:23:06 -07:00
Dylan Greene
3cbf381fc7 Replace references to isaacs/npm with npm/npm. 2014-02-06 23:34:06 -05:00
Evan Lucas
8b4bb4815d On a 404, specify the parent package if it exists
Fixes #4340. The error gets a `parent` property, and the message output displays
that.
2013-12-22 19:59:54 -05:00
Robert Kowalski
ec2c50f9bc Alter text, so people will post the full output in issues.
If people would post the full output in issues, it would save us
a lot of time.

Also removed the Google group, as it has no traffic.
2013-11-26 00:41:54 -05:00
Robert Kowalski
baafe15bd1 Tell users it's not our fault when no compatible versions are found
Fixes #3810
2013-11-02 18:37:44 +01:00
Robert Kowalski
bb4d78049e Add better error message for missing package.json
Hopefully this will enable users that are using npm for the
very first time to help themselves.
2013-10-27 20:03:12 +01:00
Thom Blake
e6faed80da Add exitCode property
As a polyfill to the node process.exitCode behavior - see
https://github.com/joyent/node/pull/6190
2013-09-13 19:27:06 +01:00
isaacs
6025b1078c add ECONNRESET to 'network issues' category 2013-07-24 14:12:32 -07:00
Robert Kowalski
c8f4100cdb show better error message for proxy users
This will hopefully enable the npm users behind a proxy to help
themselves in case of a proxy/network issue.
2013-07-24 22:45:54 +02:00
Robert Kowalski
5cba624236 Use os.EOL instead of custom solutions 2013-06-01 21:04:58 -04:00
Robert Kowalski
82b9e7d1da Show an error message if git is missing, fixes #3297 2013-05-10 17:04:28 -07:00
Robert Kowalski
0499e71f76 better error message for proxy users, fixes #3415 2013-05-10 01:12:21 -04:00
isaacs
0b18669e26 Do not suggest publish -f on EPUBLISHCONFLICT
It gives people bad ideas.
2013-02-11 11:58:32 -08:00
Domenic Denicola
fc13f37bb8 Error out if an installation results in invalid peer dependencies.
Fixes #3079.
2013-01-29 22:55:16 -08:00
isaacs
76d56d979d Fix #2606 Better error message when not logged in 2012-08-17 15:42:25 -07:00
isaacs
d20eb0fcdd Use new npmconf module 2012-08-14 19:47:43 -07:00
isaacs
7bb6f33067 Cleanup stack printing 2012-07-23 23:09:06 -07:00
isaacs
cf4f225184 Don't print the whole stack so often 2012-07-23 18:25:30 -07:00
isaacs
1fd1bdcef9 Don't show the stack trace multiple times on error 2012-07-12 08:28:35 -07:00
isaacs
0844b88835 Terser test failure output
Inspired by visionmedia/mocha#457
2012-06-20 11:18:54 -07:00
isaacs
606059007d Do not dump arguments
Sometimes data objects can contain private information on them.
2012-06-10 20:54:11 -07:00
isaacs
3b1a4f0a49 Handle errors in the more modern fashion 2012-06-08 18:04:46 -07:00
isaacs
2568e40a39 Replace the log util with npmlog module
This feels so good.  lib/utils/log.js is the worst kind of
glue code that keeps the npm project from being properly
abstracted into independent pieces.

In the process, also cleaned up a lot of unproductive logging,
and made the npm-debug.log generated on errors be a bit more
easy to read.
2012-06-06 14:56:35 -07:00
isaacs
31e4d8afde Don't prematurely exit, ever
I think this is why the npm cache gets corrupted so often.
If there's a failure while another package is in the process
of downloading, then it'll result in a corrupted tarball.

Instead, just set the exitCode, and only actually exit with
tht code when the 'exit' event occurs, so that in-transit
jobs are not forcibly killed.
2012-06-04 16:23:33 -07:00
Adam Blackburn
af50a3ca8e Fix #472 Adds support for os/cpu fields in package.json
See docs/cli/json.md for details.
2012-03-12 21:19:42 -07:00
isaacs
6c624f68f5 Make error output useful again 2012-01-12 16:45:50 -08:00
isaacs
4c57cc268b show fstream_linkpath on errors 2011-11-19 23:28:56 -08:00
isaacs
a96ec783c4 stack already printed, no need to do it again 2011-11-19 22:33:58 -08:00
isaacs
1e91c26fc9 More error decorations 2011-11-18 16:09:32 -08:00
isaacs
2ba9b18736 duct tape, almost passing make test 2011-11-17 17:56:34 -08:00
isaacs
4e83b089cd Print fstream error info if provided 2011-11-17 08:28:59 -08:00
isaacs
4eb8f6b7bf Avoid accidentally opening npm.js with WSH 2011-10-14 14:06:12 -07:00
isaacs
9caffd21af Don't write log file for simple usage stuff 2011-10-13 09:21:14 -07:00
isaacs
a73862532b Close #1510 Don't write npm-debug.log if loglevel is silent 2011-10-07 08:45:25 -07:00
isaacs
7ea7f2d656 Set the er.code for npm-specific errors, and s/EENGINE/ENOTSUP/ 2011-10-02 17:13:21 -07:00
isaacs
6faa70cfcd Fix #1469 Don't recursively call writeLogFile 2011-09-30 18:41:01 -07:00
isaacs
41db2bd11c Report extra info on the error object 2011-09-30 18:37:15 -07:00
isaacs
76d8fe86dd Suggest a search if a redundant name isn't found 2011-09-30 17:54:44 -07:00
isaacs
9dee437ace scaffolding for debugging output.write issues 2011-09-15 13:01:12 -07:00
isaacs
8a79f1bc85 Use \r\n as the windows line ending 2011-09-03 22:50:55 -07:00
isaacs
71e823981e Better reporting on early abnormal exits 2011-09-02 17:33:59 -07:00
isaacs
d09dca821b Cygwin gets the wrong errno values sometimes, it seems
This prevents them from seeing the ECONNREFUSED messaging which specifically
addresses the cygwin setup failure.
2011-08-25 13:34:15 -07:00
isaacs
4c07bf60b3 If a non-writable stream is supplied to output, then die horribly 2011-08-23 09:57:18 -07:00
isaacs
0f7eb1fcc5 Don't swallow exceptions that are not properly loggable
Since a throw due to an ini resolve error or as a result of a
callback happening more than once usually indicates some kind of
early termination error, it's best to just throw horribly
in those cases.
2011-08-23 09:23:38 -07:00
isaacs
67552dca00 Force exit. Temporary workaround for Linux rimraf timeout issue.
TODO: Fix properly.
2011-08-10 12:57:46 -07:00
isaacs
963cdb2e99 Use rimraf instead of local thing 2011-08-06 20:40:29 -07:00
isaacs
645cef3e77 Put .js on filenames 2011-08-06 13:51:59 -07:00
isaacs
591b3040b2 Exit with the proper code on failure 2011-07-24 17:10:23 -07:00