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
isaacs
56341bbb72
s/sys/util/g finally
2011-07-20 02:58:40 -07:00
isaacs
98b6a1070a
Abstract out graceful-fs
2011-07-20 01:58:33 -07:00
isaacs
bc32de8e9b
Make searches a little faster
...
1. Even if the data is stale, use it, and then fetch the update.
2. Tell couch to do the same.
2011-07-17 22:23:55 -07:00
isaacs
d8e6560d96
Add node -v and npm -v to error output
2011-07-09 13:04:08 -07:00
isaacs
e127bf8310
Print cwd on failure
2011-07-05 01:11:20 -07:00
isaacs
06ac9099d6
Close #911 Proper node-version respecting
2011-05-22 15:41:42 -07:00
isaacs
9e052c8cdf
Have to end streams for them to close
2011-03-31 01:28:50 -07:00
isaacs
d1612fd23b
report case when cb() never called.
2011-03-21 15:55:59 -07:00
isaacs
95551341d9
delete debug log on success
2011-03-21 15:55:58 -07:00
isaacs
7ee4aaf2e8
Closes GH-647 Dump **all** logs to a npm-debug.log file on faiure
2011-03-21 15:55:57 -07:00
isaacs
e4b2616f4e
Report on attempts to remove non-npm files
2011-03-21 15:55:56 -07:00