1/* IMPORTANT 2 * This snapshot file is auto-generated, but designed for humans. 3 * It should be checked into source control and tracked carefully. 4 * Re-generate by setting TAP_SNAPSHOT=1 and running tests. 5 * Make sure to inspect the output below. Do not ignore changes! 6 */ 7'use strict' 8exports[`test/lib/commands/doctor.js TAP all clear > logs 1`] = ` 9Object { 10 "error": Array [], 11 "info": Array [ 12 Array [ 13 "Running checkup", 14 ], 15 Array [ 16 "checkPing", 17 "Pinging registry", 18 ], 19 Array [ 20 "getLatestNpmVersion", 21 "Getting npm package information", 22 ], 23 Array [ 24 "getLatestNodejsVersion", 25 "Getting Node.js release information", 26 ], 27 Array [ 28 "getGitPath", 29 "Finding git in your PATH", 30 ], 31 Array [ 32 "getBinPath", 33 "Finding npm global bin in your PATH", 34 ], 35 Array [ 36 "verifyCachedFiles", 37 "Verifying the npm cache", 38 ], 39 Array [ 40 "verifyCachedFiles", 41 String( 42 Verification complete. Stats: { 43 "badContentCount": 0, 44 "reclaimedCount": 0, 45 "missingContent": 0, 46 "verifiedContent": 0 47 } 48 ), 49 ], 50 ], 51 "warn": Array [], 52} 53` 54 55exports[`test/lib/commands/doctor.js TAP all clear > output 1`] = ` 56Check Value Recommendation/Notes 57npm ping ok 58npm -v ok current: v1.0.0, latest: v1.0.0 59node -v ok current: v1.0.0, recommended: v1.0.0 60npm config get registry ok using default registry (https://registry.npmjs.org/) 61git executable in PATH ok /path/to/git 62global bin folder in PATH ok {CWD}/global/bin 63Perms check on cached files ok 64Perms check on local node_modules ok 65Perms check on global node_modules ok 66Perms check on local bin folder ok 67Perms check on global bin folder ok 68Verify cache contents ok verified 0 tarballs 69` 70 71exports[`test/lib/commands/doctor.js TAP all clear in color > everything is ok in color 1`] = ` 72[4mCheck[24m [4mValue[24m [4mRecommendation/Notes[24m 73npm ping [32mok[39m 74npm -v [32mok[39m current: v1.0.0, latest: v1.0.0 75node -v [32mok[39m current: v1.0.0, recommended: v1.0.0 76npm config get registry [32mok[39m using default registry (https://registry.npmjs.org/) 77git executable in PATH [32mok[39m /path/to/git 78global bin folder in PATH [32mok[39m {CWD}/global/bin 79Perms check on cached files [32mok[39m 80Perms check on local node_modules [32mok[39m 81Perms check on global node_modules [32mok[39m 82Perms check on local bin folder [32mok[39m 83Perms check on global bin folder [32mok[39m 84Verify cache contents [32mok[39m verified 0 tarballs 85` 86 87exports[`test/lib/commands/doctor.js TAP all clear in color > logs 1`] = ` 88Object { 89 "error": Array [], 90 "info": Array [ 91 Array [ 92 "Running checkup", 93 ], 94 Array [ 95 "checkPing", 96 "Pinging registry", 97 ], 98 Array [ 99 "getLatestNpmVersion", 100 "Getting npm package information", 101 ], 102 Array [ 103 "getLatestNodejsVersion", 104 "Getting Node.js release information", 105 ], 106 Array [ 107 "getGitPath", 108 "Finding git in your PATH", 109 ], 110 Array [ 111 "getBinPath", 112 "Finding npm global bin in your PATH", 113 ], 114 Array [ 115 "verifyCachedFiles", 116 "Verifying the npm cache", 117 ], 118 Array [ 119 "verifyCachedFiles", 120 String( 121 Verification complete. Stats: { 122 "badContentCount": 0, 123 "reclaimedCount": 0, 124 "missingContent": 0, 125 "verifiedContent": 0 126 } 127 ), 128 ], 129 ], 130 "warn": Array [], 131} 132` 133 134exports[`test/lib/commands/doctor.js TAP bad proxy > logs 1`] = ` 135Object { 136 "error": Array [], 137 "info": Array [ 138 Array [ 139 "Running checkup", 140 ], 141 Array [ 142 "checkPing", 143 "Pinging registry", 144 ], 145 Array [ 146 "getLatestNpmVersion", 147 "Getting npm package information", 148 ], 149 Array [ 150 "getLatestNodejsVersion", 151 "Getting Node.js release information", 152 ], 153 Array [ 154 "getGitPath", 155 "Finding git in your PATH", 156 ], 157 Array [ 158 "getBinPath", 159 "Finding npm global bin in your PATH", 160 ], 161 Array [ 162 "verifyCachedFiles", 163 "Verifying the npm cache", 164 ], 165 Array [ 166 "verifyCachedFiles", 167 String( 168 Verification complete. Stats: { 169 "badContentCount": 0, 170 "reclaimedCount": 0, 171 "missingContent": 0, 172 "verifiedContent": 0 173 } 174 ), 175 ], 176 ], 177 "warn": Array [], 178} 179` 180 181exports[`test/lib/commands/doctor.js TAP bad proxy > output 1`] = ` 182Check Value Recommendation/Notes 183npm ping not ok Invalid protocol \`ssh:\` connecting to proxy \`npmjs.org\` 184npm -v not ok Error: Invalid protocol \`ssh:\` connecting to proxy \`npmjs.org\` 185node -v not ok Error: Invalid protocol \`ssh:\` connecting to proxy \`npmjs.org\` 186npm config get registry ok using default registry (https://registry.npmjs.org/) 187git executable in PATH ok /path/to/git 188global bin folder in PATH ok {CWD}/global/bin 189Perms check on cached files ok 190Perms check on local node_modules ok 191Perms check on global node_modules ok 192Perms check on local bin folder ok 193Perms check on global bin folder ok 194Verify cache contents ok verified 0 tarballs 195` 196 197exports[`test/lib/commands/doctor.js TAP cacache badContent > corrupted cache content 1`] = ` 198Check Value Recommendation/Notes 199npm ping ok 200npm -v ok current: v1.0.0, latest: v1.0.0 201node -v ok current: v1.0.0, recommended: v1.0.0 202npm config get registry ok using default registry (https://registry.npmjs.org/) 203git executable in PATH ok /path/to/git 204global bin folder in PATH ok {CWD}/global/bin 205Perms check on cached files ok 206Perms check on local node_modules ok 207Perms check on global node_modules ok 208Perms check on local bin folder ok 209Perms check on global bin folder ok 210Verify cache contents ok verified 2 tarballs 211` 212 213exports[`test/lib/commands/doctor.js TAP cacache badContent > logs 1`] = ` 214Object { 215 "error": Array [], 216 "info": Array [ 217 Array [ 218 "Running checkup", 219 ], 220 Array [ 221 "checkPing", 222 "Pinging registry", 223 ], 224 Array [ 225 "getLatestNpmVersion", 226 "Getting npm package information", 227 ], 228 Array [ 229 "getLatestNodejsVersion", 230 "Getting Node.js release information", 231 ], 232 Array [ 233 "getGitPath", 234 "Finding git in your PATH", 235 ], 236 Array [ 237 "getBinPath", 238 "Finding npm global bin in your PATH", 239 ], 240 Array [ 241 "verifyCachedFiles", 242 "Verifying the npm cache", 243 ], 244 Array [ 245 "verifyCachedFiles", 246 String( 247 Verification complete. Stats: { 248 "badContentCount": 1, 249 "reclaimedCount": 0, 250 "missingContent": 0, 251 "verifiedContent": 2 252 } 253 ), 254 ], 255 ], 256 "warn": Array [ 257 Array [ 258 "verifyCachedFiles", 259 "Corrupted content removed: 1", 260 ], 261 Array [ 262 "verifyCachedFiles", 263 "Cache issues have been fixed", 264 ], 265 ], 266} 267` 268 269exports[`test/lib/commands/doctor.js TAP cacache missingContent > logs 1`] = ` 270Object { 271 "error": Array [], 272 "info": Array [ 273 Array [ 274 "Running checkup", 275 ], 276 Array [ 277 "checkPing", 278 "Pinging registry", 279 ], 280 Array [ 281 "getLatestNpmVersion", 282 "Getting npm package information", 283 ], 284 Array [ 285 "getLatestNodejsVersion", 286 "Getting Node.js release information", 287 ], 288 Array [ 289 "getGitPath", 290 "Finding git in your PATH", 291 ], 292 Array [ 293 "getBinPath", 294 "Finding npm global bin in your PATH", 295 ], 296 Array [ 297 "verifyCachedFiles", 298 "Verifying the npm cache", 299 ], 300 Array [ 301 "verifyCachedFiles", 302 String( 303 Verification complete. Stats: { 304 "badContentCount": 0, 305 "reclaimedCount": 0, 306 "missingContent": 1, 307 "verifiedContent": 2 308 } 309 ), 310 ], 311 ], 312 "warn": Array [ 313 Array [ 314 "verifyCachedFiles", 315 "Missing content: 1", 316 ], 317 Array [ 318 "verifyCachedFiles", 319 "Cache issues have been fixed", 320 ], 321 ], 322} 323` 324 325exports[`test/lib/commands/doctor.js TAP cacache missingContent > missing content 1`] = ` 326Check Value Recommendation/Notes 327npm ping ok 328npm -v ok current: v1.0.0, latest: v1.0.0 329node -v ok current: v1.0.0, recommended: v1.0.0 330npm config get registry ok using default registry (https://registry.npmjs.org/) 331git executable in PATH ok /path/to/git 332global bin folder in PATH ok {CWD}/global/bin 333Perms check on cached files ok 334Perms check on local node_modules ok 335Perms check on global node_modules ok 336Perms check on local bin folder ok 337Perms check on global bin folder ok 338Verify cache contents ok verified 2 tarballs 339` 340 341exports[`test/lib/commands/doctor.js TAP cacache reclaimedCount > content garbage collected 1`] = ` 342Check Value Recommendation/Notes 343npm ping ok 344npm -v ok current: v1.0.0, latest: v1.0.0 345node -v ok current: v1.0.0, recommended: v1.0.0 346npm config get registry ok using default registry (https://registry.npmjs.org/) 347git executable in PATH ok /path/to/git 348global bin folder in PATH ok {CWD}/global/bin 349Perms check on cached files ok 350Perms check on local node_modules ok 351Perms check on global node_modules ok 352Perms check on local bin folder ok 353Perms check on global bin folder ok 354Verify cache contents ok verified 2 tarballs 355` 356 357exports[`test/lib/commands/doctor.js TAP cacache reclaimedCount > logs 1`] = ` 358Object { 359 "error": Array [], 360 "info": Array [ 361 Array [ 362 "Running checkup", 363 ], 364 Array [ 365 "checkPing", 366 "Pinging registry", 367 ], 368 Array [ 369 "getLatestNpmVersion", 370 "Getting npm package information", 371 ], 372 Array [ 373 "getLatestNodejsVersion", 374 "Getting Node.js release information", 375 ], 376 Array [ 377 "getGitPath", 378 "Finding git in your PATH", 379 ], 380 Array [ 381 "getBinPath", 382 "Finding npm global bin in your PATH", 383 ], 384 Array [ 385 "verifyCachedFiles", 386 "Verifying the npm cache", 387 ], 388 Array [ 389 "verifyCachedFiles", 390 String( 391 Verification complete. Stats: { 392 "badContentCount": 0, 393 "reclaimedCount": 1, 394 "missingContent": 0, 395 "verifiedContent": 2 396 } 397 ), 398 ], 399 ], 400 "warn": Array [ 401 Array [ 402 "verifyCachedFiles", 403 "Content garbage-collected: 1 (undefined bytes)", 404 ], 405 Array [ 406 "verifyCachedFiles", 407 "Cache issues have been fixed", 408 ], 409 ], 410} 411` 412 413exports[`test/lib/commands/doctor.js TAP discrete checks cache > logs 1`] = ` 414Object { 415 "error": Array [], 416 "info": Array [ 417 Array [ 418 "Running checkup", 419 ], 420 Array [ 421 "verifyCachedFiles", 422 "Verifying the npm cache", 423 ], 424 Array [ 425 "verifyCachedFiles", 426 String( 427 Verification complete. Stats: { 428 "badContentCount": 0, 429 "reclaimedCount": 0, 430 "missingContent": 0, 431 "verifiedContent": 0 432 } 433 ), 434 ], 435 ], 436 "warn": Array [], 437} 438` 439 440exports[`test/lib/commands/doctor.js TAP discrete checks cache > output 1`] = ` 441Check Value Recommendation/Notes 442Perms check on cached files ok 443Verify cache contents ok verified 0 tarballs 444` 445 446exports[`test/lib/commands/doctor.js TAP discrete checks git > logs 1`] = ` 447Object { 448 "error": Array [], 449 "info": Array [ 450 Array [ 451 "Running checkup", 452 ], 453 ], 454 "warn": Array [], 455} 456` 457 458exports[`test/lib/commands/doctor.js TAP discrete checks git > output 1`] = ` 459Check Value Recommendation/Notes 460` 461 462exports[`test/lib/commands/doctor.js TAP discrete checks invalid environment > logs 1`] = ` 463Object { 464 "error": Array [], 465 "info": Array [ 466 Array [ 467 "Running checkup", 468 ], 469 Array [ 470 "getGitPath", 471 "Finding git in your PATH", 472 ], 473 Array [ 474 "getBinPath", 475 "Finding npm global bin in your PATH", 476 ], 477 ], 478 "warn": Array [], 479} 480` 481 482exports[`test/lib/commands/doctor.js TAP discrete checks invalid environment > output 1`] = ` 483Check Value Recommendation/Notes 484git executable in PATH ok /path/to/git 485global bin folder in PATH not ok Error: Add {CWD}/global/bin to your $PATH 486` 487 488exports[`test/lib/commands/doctor.js TAP discrete checks permissions - not windows > logs 1`] = ` 489Object { 490 "error": Array [], 491 "info": Array [ 492 Array [ 493 "Running checkup", 494 ], 495 ], 496 "warn": Array [], 497} 498` 499 500exports[`test/lib/commands/doctor.js TAP discrete checks permissions - not windows > output 1`] = ` 501Check Value Recommendation/Notes 502Perms check on cached files ok 503Perms check on local node_modules ok 504Perms check on global node_modules ok 505Perms check on local bin folder ok 506Perms check on global bin folder ok 507` 508 509exports[`test/lib/commands/doctor.js TAP discrete checks permissions - windows > logs 1`] = ` 510Object { 511 "error": Array [], 512 "info": Array [ 513 Array [ 514 "Running checkup", 515 ], 516 ], 517 "warn": Array [], 518} 519` 520 521exports[`test/lib/commands/doctor.js TAP discrete checks permissions - windows > output 1`] = ` 522Check Value Recommendation/Notes 523` 524 525exports[`test/lib/commands/doctor.js TAP discrete checks ping > logs 1`] = ` 526Object { 527 "error": Array [], 528 "info": Array [ 529 Array [ 530 "Running checkup", 531 ], 532 Array [ 533 "checkPing", 534 "Pinging registry", 535 ], 536 ], 537 "warn": Array [], 538} 539` 540 541exports[`test/lib/commands/doctor.js TAP discrete checks ping > output 1`] = ` 542Check Value Recommendation/Notes 543npm ping ok 544` 545 546exports[`test/lib/commands/doctor.js TAP discrete checks registry > logs 1`] = ` 547Object { 548 "error": Array [], 549 "info": Array [ 550 Array [ 551 "Running checkup", 552 ], 553 Array [ 554 "checkPing", 555 "Pinging registry", 556 ], 557 ], 558 "warn": Array [], 559} 560` 561 562exports[`test/lib/commands/doctor.js TAP discrete checks registry > output 1`] = ` 563Check Value Recommendation/Notes 564npm ping ok 565npm config get registry ok using default registry (https://registry.npmjs.org/) 566` 567 568exports[`test/lib/commands/doctor.js TAP discrete checks versions > logs 1`] = ` 569Object { 570 "error": Array [], 571 "info": Array [ 572 Array [ 573 "Running checkup", 574 ], 575 Array [ 576 "getLatestNpmVersion", 577 "Getting npm package information", 578 ], 579 Array [ 580 "getLatestNodejsVersion", 581 "Getting Node.js release information", 582 ], 583 ], 584 "warn": Array [], 585} 586` 587 588exports[`test/lib/commands/doctor.js TAP discrete checks versions > output 1`] = ` 589Check Value Recommendation/Notes 590npm -v ok current: v1.0.0, latest: v1.0.0 591node -v ok current: v1.0.0, recommended: v1.0.0 592` 593 594exports[`test/lib/commands/doctor.js TAP error reading directory > logs 1`] = ` 595Object { 596 "error": Array [], 597 "info": Array [ 598 Array [ 599 "Running checkup", 600 ], 601 Array [ 602 "checkPing", 603 "Pinging registry", 604 ], 605 Array [ 606 "getLatestNpmVersion", 607 "Getting npm package information", 608 ], 609 Array [ 610 "getLatestNodejsVersion", 611 "Getting Node.js release information", 612 ], 613 Array [ 614 "getGitPath", 615 "Finding git in your PATH", 616 ], 617 Array [ 618 "getBinPath", 619 "Finding npm global bin in your PATH", 620 ], 621 Array [ 622 "verifyCachedFiles", 623 "Verifying the npm cache", 624 ], 625 Array [ 626 "verifyCachedFiles", 627 String( 628 Verification complete. Stats: { 629 "badContentCount": 0, 630 "reclaimedCount": 0, 631 "missingContent": 0, 632 "verifiedContent": 0 633 } 634 ), 635 ], 636 ], 637 "warn": Array [ 638 Array [ 639 "checkFilesPermission", 640 "error reading directory {CWD}/cache", 641 ], 642 Array [ 643 "checkFilesPermission", 644 "error reading directory {CWD}/prefix/node_modules", 645 ], 646 Array [ 647 "checkFilesPermission", 648 "error reading directory {CWD}/global/node_modules", 649 ], 650 Array [ 651 "checkFilesPermission", 652 "error reading directory {CWD}/prefix/node_modules/.bin", 653 ], 654 Array [ 655 "checkFilesPermission", 656 "error reading directory {CWD}/global/bin", 657 ], 658 ], 659} 660` 661 662exports[`test/lib/commands/doctor.js TAP error reading directory > readdir error 1`] = ` 663Check Value Recommendation/Notes 664npm ping ok 665npm -v ok current: v1.0.0, latest: v1.0.0 666node -v ok current: v1.0.0, recommended: v1.0.0 667npm config get registry ok using default registry (https://registry.npmjs.org/) 668git executable in PATH ok /path/to/git 669global bin folder in PATH ok {CWD}/global/bin 670Perms check on cached files not ok Check the permissions of files in {CWD}/cache (should be owned by current user) 671Perms check on local node_modules not ok Check the permissions of files in {CWD}/prefix/node_modules (should be owned by current user) 672Perms check on global node_modules not ok Check the permissions of files in {CWD}/global/node_modules 673Perms check on local bin folder not ok Check the permissions of files in {CWD}/prefix/node_modules/.bin 674Perms check on global bin folder not ok Check the permissions of files in {CWD}/global/bin 675Verify cache contents ok verified 0 tarballs 676` 677 678exports[`test/lib/commands/doctor.js TAP incorrect owner > incorrect owner 1`] = ` 679Check Value Recommendation/Notes 680npm ping ok 681npm -v ok current: v1.0.0, latest: v1.0.0 682node -v ok current: v1.0.0, recommended: v1.0.0 683npm config get registry ok using default registry (https://registry.npmjs.org/) 684git executable in PATH ok /path/to/git 685global bin folder in PATH ok {CWD}/global/bin 686Perms check on cached files not ok Check the permissions of files in {CWD}/cache (should be owned by current user) 687Perms check on local node_modules ok 688Perms check on global node_modules ok 689Perms check on local bin folder ok 690Perms check on global bin folder ok 691Verify cache contents ok verified 0 tarballs 692` 693 694exports[`test/lib/commands/doctor.js TAP incorrect owner > logs 1`] = ` 695Object { 696 "error": Array [], 697 "info": Array [ 698 Array [ 699 "Running checkup", 700 ], 701 Array [ 702 "checkPing", 703 "Pinging registry", 704 ], 705 Array [ 706 "getLatestNpmVersion", 707 "Getting npm package information", 708 ], 709 Array [ 710 "getLatestNodejsVersion", 711 "Getting Node.js release information", 712 ], 713 Array [ 714 "getGitPath", 715 "Finding git in your PATH", 716 ], 717 Array [ 718 "getBinPath", 719 "Finding npm global bin in your PATH", 720 ], 721 Array [ 722 "verifyCachedFiles", 723 "Verifying the npm cache", 724 ], 725 Array [ 726 "verifyCachedFiles", 727 String( 728 Verification complete. Stats: { 729 "badContentCount": 0, 730 "reclaimedCount": 0, 731 "missingContent": 0, 732 "verifiedContent": 0 733 } 734 ), 735 ], 736 ], 737 "warn": Array [ 738 Array [ 739 "checkFilesPermission", 740 "should be owner of {CWD}/cache/_cacache", 741 ], 742 ], 743} 744` 745 746exports[`test/lib/commands/doctor.js TAP incorrect permissions > incorrect owner 1`] = ` 747Check Value Recommendation/Notes 748npm ping ok 749npm -v ok current: v1.0.0, latest: v1.0.0 750node -v ok current: v1.0.0, recommended: v1.0.0 751npm config get registry ok using default registry (https://registry.npmjs.org/) 752git executable in PATH ok /path/to/git 753global bin folder in PATH ok {CWD}/global/bin 754Perms check on cached files not ok Check the permissions of files in {CWD}/cache (should be owned by current user) 755Perms check on local node_modules not ok Check the permissions of files in {CWD}/prefix/node_modules (should be owned by current user) 756Perms check on global node_modules not ok Check the permissions of files in {CWD}/global/node_modules 757Perms check on local bin folder not ok Check the permissions of files in {CWD}/prefix/node_modules/.bin 758Perms check on global bin folder not ok Check the permissions of files in {CWD}/global/bin 759Verify cache contents ok verified 0 tarballs 760` 761 762exports[`test/lib/commands/doctor.js TAP incorrect permissions > logs 1`] = ` 763Object { 764 "error": Array [ 765 Array [ 766 "checkFilesPermission", 767 "Missing permissions on {CWD}/cache (expect: readable)", 768 ], 769 Array [ 770 "checkFilesPermission", 771 "Missing permissions on {CWD}/prefix/node_modules (expect: readable, writable)", 772 ], 773 Array [ 774 "checkFilesPermission", 775 "Missing permissions on {CWD}/global/node_modules (expect: readable)", 776 ], 777 Array [ 778 "checkFilesPermission", 779 "Missing permissions on {CWD}/prefix/node_modules/.bin (expect: readable, writable, executable)", 780 ], 781 Array [ 782 "checkFilesPermission", 783 "Missing permissions on {CWD}/global/bin (expect: executable)", 784 ], 785 ], 786 "info": Array [ 787 Array [ 788 "Running checkup", 789 ], 790 Array [ 791 "checkPing", 792 "Pinging registry", 793 ], 794 Array [ 795 "getLatestNpmVersion", 796 "Getting npm package information", 797 ], 798 Array [ 799 "getLatestNodejsVersion", 800 "Getting Node.js release information", 801 ], 802 Array [ 803 "getGitPath", 804 "Finding git in your PATH", 805 ], 806 Array [ 807 "getBinPath", 808 "Finding npm global bin in your PATH", 809 ], 810 Array [ 811 "verifyCachedFiles", 812 "Verifying the npm cache", 813 ], 814 Array [ 815 "verifyCachedFiles", 816 String( 817 Verification complete. Stats: { 818 "badContentCount": 0, 819 "reclaimedCount": 0, 820 "missingContent": 0, 821 "verifiedContent": 0 822 } 823 ), 824 ], 825 ], 826 "warn": Array [], 827} 828` 829 830exports[`test/lib/commands/doctor.js TAP missing git > logs 1`] = ` 831Object { 832 "error": Array [], 833 "info": Array [ 834 Array [ 835 "Running checkup", 836 ], 837 Array [ 838 "checkPing", 839 "Pinging registry", 840 ], 841 Array [ 842 "getLatestNpmVersion", 843 "Getting npm package information", 844 ], 845 Array [ 846 "getLatestNodejsVersion", 847 "Getting Node.js release information", 848 ], 849 Array [ 850 "getGitPath", 851 "Finding git in your PATH", 852 ], 853 Array [ 854 "getBinPath", 855 "Finding npm global bin in your PATH", 856 ], 857 Array [ 858 "verifyCachedFiles", 859 "Verifying the npm cache", 860 ], 861 Array [ 862 "verifyCachedFiles", 863 String( 864 Verification complete. Stats: { 865 "badContentCount": 0, 866 "reclaimedCount": 0, 867 "missingContent": 0, 868 "verifiedContent": 0 869 } 870 ), 871 ], 872 ], 873 "warn": Array [ 874 Array [ 875 Error: test error, 876 ], 877 ], 878} 879` 880 881exports[`test/lib/commands/doctor.js TAP missing git > missing git 1`] = ` 882Check Value Recommendation/Notes 883npm ping ok 884npm -v ok current: v1.0.0, latest: v1.0.0 885node -v ok current: v1.0.0, recommended: v1.0.0 886npm config get registry ok using default registry (https://registry.npmjs.org/) 887git executable in PATH not ok Error: Install git and ensure it's in your PATH. 888global bin folder in PATH ok {CWD}/global/bin 889Perms check on cached files ok 890Perms check on local node_modules ok 891Perms check on global node_modules ok 892Perms check on local bin folder ok 893Perms check on global bin folder ok 894Verify cache contents ok verified 0 tarballs 895` 896 897exports[`test/lib/commands/doctor.js TAP missing global directories > logs 1`] = ` 898Object { 899 "error": Array [], 900 "info": Array [ 901 Array [ 902 "Running checkup", 903 ], 904 Array [ 905 "checkPing", 906 "Pinging registry", 907 ], 908 Array [ 909 "getLatestNpmVersion", 910 "Getting npm package information", 911 ], 912 Array [ 913 "getLatestNodejsVersion", 914 "Getting Node.js release information", 915 ], 916 Array [ 917 "getGitPath", 918 "Finding git in your PATH", 919 ], 920 Array [ 921 "getBinPath", 922 "Finding npm global bin in your PATH", 923 ], 924 Array [ 925 "verifyCachedFiles", 926 "Verifying the npm cache", 927 ], 928 Array [ 929 "verifyCachedFiles", 930 String( 931 Verification complete. Stats: { 932 "badContentCount": 0, 933 "reclaimedCount": 0, 934 "missingContent": 0, 935 "verifiedContent": 0 936 } 937 ), 938 ], 939 ], 940 "warn": Array [ 941 Array [ 942 "checkFilesPermission", 943 "error getting info for {CWD}/global/node_modules", 944 ], 945 Array [ 946 "checkFilesPermission", 947 "error getting info for {CWD}/global/bin", 948 ], 949 ], 950} 951` 952 953exports[`test/lib/commands/doctor.js TAP missing global directories > missing global directories 1`] = ` 954Check Value Recommendation/Notes 955npm ping ok 956npm -v ok current: v1.0.0, latest: v1.0.0 957node -v ok current: v1.0.0, recommended: v1.0.0 958npm config get registry ok using default registry (https://registry.npmjs.org/) 959git executable in PATH ok /path/to/git 960global bin folder in PATH ok {CWD}/global/bin 961Perms check on cached files ok 962Perms check on local node_modules ok 963Perms check on global node_modules not ok Check the permissions of files in {CWD}/global/node_modules 964Perms check on local bin folder ok 965Perms check on global bin folder not ok Check the permissions of files in {CWD}/global/bin 966Verify cache contents ok verified 0 tarballs 967` 968 969exports[`test/lib/commands/doctor.js TAP missing local node_modules > logs 1`] = ` 970Object { 971 "error": Array [], 972 "info": Array [ 973 Array [ 974 "Running checkup", 975 ], 976 Array [ 977 "checkPing", 978 "Pinging registry", 979 ], 980 Array [ 981 "getLatestNpmVersion", 982 "Getting npm package information", 983 ], 984 Array [ 985 "getLatestNodejsVersion", 986 "Getting Node.js release information", 987 ], 988 Array [ 989 "getGitPath", 990 "Finding git in your PATH", 991 ], 992 Array [ 993 "getBinPath", 994 "Finding npm global bin in your PATH", 995 ], 996 Array [ 997 "verifyCachedFiles", 998 "Verifying the npm cache", 999 ], 1000 Array [ 1001 "verifyCachedFiles", 1002 String( 1003 Verification complete. Stats: { 1004 "badContentCount": 0, 1005 "reclaimedCount": 0, 1006 "missingContent": 0, 1007 "verifiedContent": 0 1008 } 1009 ), 1010 ], 1011 ], 1012 "warn": Array [], 1013} 1014` 1015 1016exports[`test/lib/commands/doctor.js TAP missing local node_modules > missing local node_modules 1`] = ` 1017Check Value Recommendation/Notes 1018npm ping ok 1019npm -v ok current: v1.0.0, latest: v1.0.0 1020node -v ok current: v1.0.0, recommended: v1.0.0 1021npm config get registry ok using default registry (https://registry.npmjs.org/) 1022git executable in PATH ok /path/to/git 1023global bin folder in PATH ok {CWD}/global/bin 1024Perms check on cached files ok 1025Perms check on local node_modules ok 1026Perms check on global node_modules ok 1027Perms check on local bin folder ok 1028Perms check on global bin folder ok 1029Verify cache contents ok verified 0 tarballs 1030` 1031 1032exports[`test/lib/commands/doctor.js TAP node out of date - current > logs 1`] = ` 1033Object { 1034 "error": Array [], 1035 "info": Array [ 1036 Array [ 1037 "Running checkup", 1038 ], 1039 Array [ 1040 "checkPing", 1041 "Pinging registry", 1042 ], 1043 Array [ 1044 "getLatestNpmVersion", 1045 "Getting npm package information", 1046 ], 1047 Array [ 1048 "getLatestNodejsVersion", 1049 "Getting Node.js release information", 1050 ], 1051 Array [ 1052 "getGitPath", 1053 "Finding git in your PATH", 1054 ], 1055 Array [ 1056 "getBinPath", 1057 "Finding npm global bin in your PATH", 1058 ], 1059 Array [ 1060 "verifyCachedFiles", 1061 "Verifying the npm cache", 1062 ], 1063 Array [ 1064 "verifyCachedFiles", 1065 String( 1066 Verification complete. Stats: { 1067 "badContentCount": 0, 1068 "reclaimedCount": 0, 1069 "missingContent": 0, 1070 "verifiedContent": 0 1071 } 1072 ), 1073 ], 1074 ], 1075 "warn": Array [], 1076} 1077` 1078 1079exports[`test/lib/commands/doctor.js TAP node out of date - current > node is out of date 1`] = ` 1080Check Value Recommendation/Notes 1081npm ping ok 1082npm -v ok current: v1.0.0, latest: v1.0.0 1083node -v not ok Use node v2.0.1 (current: v2.0.0) 1084npm config get registry ok using default registry (https://registry.npmjs.org/) 1085git executable in PATH ok /path/to/git 1086global bin folder in PATH ok {CWD}/global/bin 1087Perms check on cached files ok 1088Perms check on local node_modules ok 1089Perms check on global node_modules ok 1090Perms check on local bin folder ok 1091Perms check on global bin folder ok 1092Verify cache contents ok verified 0 tarballs 1093` 1094 1095exports[`test/lib/commands/doctor.js TAP node out of date - lts > logs 1`] = ` 1096Object { 1097 "error": Array [], 1098 "info": Array [ 1099 Array [ 1100 "Running checkup", 1101 ], 1102 Array [ 1103 "checkPing", 1104 "Pinging registry", 1105 ], 1106 Array [ 1107 "getLatestNpmVersion", 1108 "Getting npm package information", 1109 ], 1110 Array [ 1111 "getLatestNodejsVersion", 1112 "Getting Node.js release information", 1113 ], 1114 Array [ 1115 "getGitPath", 1116 "Finding git in your PATH", 1117 ], 1118 Array [ 1119 "getBinPath", 1120 "Finding npm global bin in your PATH", 1121 ], 1122 Array [ 1123 "verifyCachedFiles", 1124 "Verifying the npm cache", 1125 ], 1126 Array [ 1127 "verifyCachedFiles", 1128 String( 1129 Verification complete. Stats: { 1130 "badContentCount": 0, 1131 "reclaimedCount": 0, 1132 "missingContent": 0, 1133 "verifiedContent": 0 1134 } 1135 ), 1136 ], 1137 ], 1138 "warn": Array [], 1139} 1140` 1141 1142exports[`test/lib/commands/doctor.js TAP node out of date - lts > node is out of date 1`] = ` 1143Check Value Recommendation/Notes 1144npm ping ok 1145npm -v ok current: v1.0.0, latest: v1.0.0 1146node -v not ok Use node v1.0.0 (current: v0.0.1) 1147npm config get registry ok using default registry (https://registry.npmjs.org/) 1148git executable in PATH ok /path/to/git 1149global bin folder in PATH ok {CWD}/global/bin 1150Perms check on cached files ok 1151Perms check on local node_modules ok 1152Perms check on global node_modules ok 1153Perms check on local bin folder ok 1154Perms check on global bin folder ok 1155Verify cache contents ok verified 0 tarballs 1156` 1157 1158exports[`test/lib/commands/doctor.js TAP non-default registry > logs 1`] = ` 1159Object { 1160 "error": Array [], 1161 "info": Array [ 1162 Array [ 1163 "Running checkup", 1164 ], 1165 Array [ 1166 "checkPing", 1167 "Pinging registry", 1168 ], 1169 Array [ 1170 "getLatestNpmVersion", 1171 "Getting npm package information", 1172 ], 1173 Array [ 1174 "getLatestNodejsVersion", 1175 "Getting Node.js release information", 1176 ], 1177 Array [ 1178 "getGitPath", 1179 "Finding git in your PATH", 1180 ], 1181 Array [ 1182 "getBinPath", 1183 "Finding npm global bin in your PATH", 1184 ], 1185 Array [ 1186 "verifyCachedFiles", 1187 "Verifying the npm cache", 1188 ], 1189 Array [ 1190 "verifyCachedFiles", 1191 String( 1192 Verification complete. Stats: { 1193 "badContentCount": 0, 1194 "reclaimedCount": 0, 1195 "missingContent": 0, 1196 "verifiedContent": 0 1197 } 1198 ), 1199 ], 1200 ], 1201 "warn": Array [], 1202} 1203` 1204 1205exports[`test/lib/commands/doctor.js TAP non-default registry > non default registry 1`] = ` 1206Check Value Recommendation/Notes 1207npm ping ok 1208npm -v ok current: v1.0.0, latest: v1.0.0 1209node -v ok current: v1.0.0, recommended: v1.0.0 1210npm config get registry not ok Try \`npm config set registry=https://registry.npmjs.org/\` 1211git executable in PATH ok /path/to/git 1212global bin folder in PATH ok {CWD}/global/bin 1213Perms check on cached files ok 1214Perms check on local node_modules ok 1215Perms check on global node_modules ok 1216Perms check on local bin folder ok 1217Perms check on global bin folder ok 1218Verify cache contents ok verified 0 tarballs 1219` 1220 1221exports[`test/lib/commands/doctor.js TAP npm out of date > logs 1`] = ` 1222Object { 1223 "error": Array [], 1224 "info": Array [ 1225 Array [ 1226 "Running checkup", 1227 ], 1228 Array [ 1229 "checkPing", 1230 "Pinging registry", 1231 ], 1232 Array [ 1233 "getLatestNpmVersion", 1234 "Getting npm package information", 1235 ], 1236 Array [ 1237 "getLatestNodejsVersion", 1238 "Getting Node.js release information", 1239 ], 1240 Array [ 1241 "getGitPath", 1242 "Finding git in your PATH", 1243 ], 1244 Array [ 1245 "getBinPath", 1246 "Finding npm global bin in your PATH", 1247 ], 1248 Array [ 1249 "verifyCachedFiles", 1250 "Verifying the npm cache", 1251 ], 1252 Array [ 1253 "verifyCachedFiles", 1254 String( 1255 Verification complete. Stats: { 1256 "badContentCount": 0, 1257 "reclaimedCount": 0, 1258 "missingContent": 0, 1259 "verifiedContent": 0 1260 } 1261 ), 1262 ], 1263 ], 1264 "warn": Array [], 1265} 1266` 1267 1268exports[`test/lib/commands/doctor.js TAP npm out of date > npm is out of date 1`] = ` 1269Check Value Recommendation/Notes 1270npm ping ok 1271npm -v not ok Use npm v2.0.0 1272node -v ok current: v1.0.0, recommended: v1.0.0 1273npm config get registry ok using default registry (https://registry.npmjs.org/) 1274git executable in PATH ok /path/to/git 1275global bin folder in PATH ok {CWD}/global/bin 1276Perms check on cached files ok 1277Perms check on local node_modules ok 1278Perms check on global node_modules ok 1279Perms check on local bin folder ok 1280Perms check on global bin folder ok 1281Verify cache contents ok verified 0 tarballs 1282` 1283 1284exports[`test/lib/commands/doctor.js TAP ping 404 > logs 1`] = ` 1285Object { 1286 "error": Array [], 1287 "info": Array [ 1288 Array [ 1289 "Running checkup", 1290 ], 1291 Array [ 1292 "checkPing", 1293 "Pinging registry", 1294 ], 1295 Array [ 1296 "getLatestNpmVersion", 1297 "Getting npm package information", 1298 ], 1299 Array [ 1300 "getLatestNodejsVersion", 1301 "Getting Node.js release information", 1302 ], 1303 Array [ 1304 "getGitPath", 1305 "Finding git in your PATH", 1306 ], 1307 Array [ 1308 "getBinPath", 1309 "Finding npm global bin in your PATH", 1310 ], 1311 Array [ 1312 "verifyCachedFiles", 1313 "Verifying the npm cache", 1314 ], 1315 Array [ 1316 "verifyCachedFiles", 1317 String( 1318 Verification complete. Stats: { 1319 "badContentCount": 0, 1320 "reclaimedCount": 0, 1321 "missingContent": 0, 1322 "verifiedContent": 0 1323 } 1324 ), 1325 ], 1326 ], 1327 "warn": Array [], 1328} 1329` 1330 1331exports[`test/lib/commands/doctor.js TAP ping 404 > ping 404 1`] = ` 1332Check Value Recommendation/Notes 1333npm ping not ok 404 404 Not Found - GET https://registry.npmjs.org/-/ping?write=true 1334npm -v ok current: v1.0.0, latest: v1.0.0 1335node -v ok current: v1.0.0, recommended: v1.0.0 1336npm config get registry ok using default registry (https://registry.npmjs.org/) 1337git executable in PATH ok /path/to/git 1338global bin folder in PATH ok {CWD}/global/bin 1339Perms check on cached files ok 1340Perms check on local node_modules ok 1341Perms check on global node_modules ok 1342Perms check on local bin folder ok 1343Perms check on global bin folder ok 1344Verify cache contents ok verified 0 tarballs 1345` 1346 1347exports[`test/lib/commands/doctor.js TAP ping 404 in color > logs 1`] = ` 1348Object { 1349 "error": Array [], 1350 "info": Array [ 1351 Array [ 1352 "Running checkup", 1353 ], 1354 Array [ 1355 "checkPing", 1356 "Pinging registry", 1357 ], 1358 Array [ 1359 "getLatestNpmVersion", 1360 "Getting npm package information", 1361 ], 1362 Array [ 1363 "getLatestNodejsVersion", 1364 "Getting Node.js release information", 1365 ], 1366 Array [ 1367 "getGitPath", 1368 "Finding git in your PATH", 1369 ], 1370 Array [ 1371 "getBinPath", 1372 "Finding npm global bin in your PATH", 1373 ], 1374 Array [ 1375 "verifyCachedFiles", 1376 "Verifying the npm cache", 1377 ], 1378 Array [ 1379 "verifyCachedFiles", 1380 String( 1381 Verification complete. Stats: { 1382 "badContentCount": 0, 1383 "reclaimedCount": 0, 1384 "missingContent": 0, 1385 "verifiedContent": 0 1386 } 1387 ), 1388 ], 1389 ], 1390 "warn": Array [], 1391} 1392` 1393 1394exports[`test/lib/commands/doctor.js TAP ping 404 in color > ping 404 in color 1`] = ` 1395[4mCheck[24m [4mValue[24m [4mRecommendation/Notes[24m 1396[31mnpm ping[39m [31mnot ok[39m [35m404 404 Not Found - GET https://registry.npmjs.org/-/ping?write=true[39m 1397npm -v [32mok[39m current: v1.0.0, latest: v1.0.0 1398node -v [32mok[39m current: v1.0.0, recommended: v1.0.0 1399npm config get registry [32mok[39m using default registry (https://registry.npmjs.org/) 1400git executable in PATH [32mok[39m /path/to/git 1401global bin folder in PATH [32mok[39m {CWD}/global/bin 1402Perms check on cached files [32mok[39m 1403Perms check on local node_modules [32mok[39m 1404Perms check on global node_modules [32mok[39m 1405Perms check on local bin folder [32mok[39m 1406Perms check on global bin folder [32mok[39m 1407Verify cache contents [32mok[39m verified 0 tarballs 1408` 1409 1410exports[`test/lib/commands/doctor.js TAP ping exception with code > logs 1`] = ` 1411Object { 1412 "error": Array [], 1413 "info": Array [ 1414 Array [ 1415 "Running checkup", 1416 ], 1417 Array [ 1418 "checkPing", 1419 "Pinging registry", 1420 ], 1421 Array [ 1422 "getLatestNpmVersion", 1423 "Getting npm package information", 1424 ], 1425 Array [ 1426 "getLatestNodejsVersion", 1427 "Getting Node.js release information", 1428 ], 1429 Array [ 1430 "getGitPath", 1431 "Finding git in your PATH", 1432 ], 1433 Array [ 1434 "getBinPath", 1435 "Finding npm global bin in your PATH", 1436 ], 1437 Array [ 1438 "verifyCachedFiles", 1439 "Verifying the npm cache", 1440 ], 1441 Array [ 1442 "verifyCachedFiles", 1443 String( 1444 Verification complete. Stats: { 1445 "badContentCount": 0, 1446 "reclaimedCount": 0, 1447 "missingContent": 0, 1448 "verifiedContent": 0 1449 } 1450 ), 1451 ], 1452 ], 1453 "warn": Array [], 1454} 1455` 1456 1457exports[`test/lib/commands/doctor.js TAP ping exception with code > ping failure 1`] = ` 1458Check Value Recommendation/Notes 1459npm ping not ok request to https://registry.npmjs.org/-/ping?write=true failed, reason: Test Error 1460npm -v ok current: v1.0.0, latest: v1.0.0 1461node -v ok current: v1.0.0, recommended: v1.0.0 1462npm config get registry ok using default registry (https://registry.npmjs.org/) 1463git executable in PATH ok /path/to/git 1464global bin folder in PATH ok {CWD}/global/bin 1465Perms check on cached files ok 1466Perms check on local node_modules ok 1467Perms check on global node_modules ok 1468Perms check on local bin folder ok 1469Perms check on global bin folder ok 1470Verify cache contents ok verified 0 tarballs 1471` 1472 1473exports[`test/lib/commands/doctor.js TAP ping exception without code > logs 1`] = ` 1474Object { 1475 "error": Array [], 1476 "info": Array [ 1477 Array [ 1478 "Running checkup", 1479 ], 1480 Array [ 1481 "checkPing", 1482 "Pinging registry", 1483 ], 1484 Array [ 1485 "getLatestNpmVersion", 1486 "Getting npm package information", 1487 ], 1488 Array [ 1489 "getLatestNodejsVersion", 1490 "Getting Node.js release information", 1491 ], 1492 Array [ 1493 "getGitPath", 1494 "Finding git in your PATH", 1495 ], 1496 Array [ 1497 "getBinPath", 1498 "Finding npm global bin in your PATH", 1499 ], 1500 Array [ 1501 "verifyCachedFiles", 1502 "Verifying the npm cache", 1503 ], 1504 Array [ 1505 "verifyCachedFiles", 1506 String( 1507 Verification complete. Stats: { 1508 "badContentCount": 0, 1509 "reclaimedCount": 0, 1510 "missingContent": 0, 1511 "verifiedContent": 0 1512 } 1513 ), 1514 ], 1515 ], 1516 "warn": Array [], 1517} 1518` 1519 1520exports[`test/lib/commands/doctor.js TAP ping exception without code > ping failure 1`] = ` 1521Check Value Recommendation/Notes 1522npm ping not ok request to https://registry.npmjs.org/-/ping?write=true failed, reason: Test Error 1523npm -v ok current: v1.0.0, latest: v1.0.0 1524node -v ok current: v1.0.0, recommended: v1.0.0 1525npm config get registry ok using default registry (https://registry.npmjs.org/) 1526git executable in PATH ok /path/to/git 1527global bin folder in PATH ok {CWD}/global/bin 1528Perms check on cached files ok 1529Perms check on local node_modules ok 1530Perms check on global node_modules ok 1531Perms check on local bin folder ok 1532Perms check on global bin folder ok 1533Verify cache contents ok verified 0 tarballs 1534` 1535 1536exports[`test/lib/commands/doctor.js TAP silent errors > logs 1`] = ` 1537Object { 1538 "error": Array [], 1539 "info": Array [ 1540 Array [ 1541 "Running checkup", 1542 ], 1543 Array [ 1544 "checkPing", 1545 "Pinging registry", 1546 ], 1547 ], 1548 "warn": Array [], 1549} 1550` 1551 1552exports[`test/lib/commands/doctor.js TAP silent errors > output 1`] = ` 1553 1554` 1555 1556exports[`test/lib/commands/doctor.js TAP silent success > logs 1`] = ` 1557Object { 1558 "error": Array [], 1559 "info": Array [ 1560 Array [ 1561 "Running checkup", 1562 ], 1563 Array [ 1564 "checkPing", 1565 "Pinging registry", 1566 ], 1567 Array [ 1568 "getLatestNpmVersion", 1569 "Getting npm package information", 1570 ], 1571 Array [ 1572 "getLatestNodejsVersion", 1573 "Getting Node.js release information", 1574 ], 1575 Array [ 1576 "getGitPath", 1577 "Finding git in your PATH", 1578 ], 1579 Array [ 1580 "getBinPath", 1581 "Finding npm global bin in your PATH", 1582 ], 1583 Array [ 1584 "verifyCachedFiles", 1585 "Verifying the npm cache", 1586 ], 1587 Array [ 1588 "verifyCachedFiles", 1589 String( 1590 Verification complete. Stats: { 1591 "badContentCount": 0, 1592 "reclaimedCount": 0, 1593 "missingContent": 0, 1594 "verifiedContent": 0 1595 } 1596 ), 1597 ], 1598 ], 1599 "warn": Array [], 1600} 1601` 1602 1603exports[`test/lib/commands/doctor.js TAP silent success > output 1`] = ` 1604 1605` 1606 1607exports[`test/lib/commands/doctor.js TAP windows skips permissions checks > logs 1`] = ` 1608Object { 1609 "error": Array [], 1610 "info": Array [ 1611 Array [ 1612 "Running checkup", 1613 ], 1614 Array [ 1615 "checkPing", 1616 "Pinging registry", 1617 ], 1618 Array [ 1619 "getLatestNpmVersion", 1620 "Getting npm package information", 1621 ], 1622 Array [ 1623 "getLatestNodejsVersion", 1624 "Getting Node.js release information", 1625 ], 1626 Array [ 1627 "getGitPath", 1628 "Finding git in your PATH", 1629 ], 1630 Array [ 1631 "getBinPath", 1632 "Finding npm global bin in your PATH", 1633 ], 1634 ], 1635 "warn": Array [], 1636} 1637` 1638 1639exports[`test/lib/commands/doctor.js TAP windows skips permissions checks > no permissions checks 1`] = ` 1640Check Value Recommendation/Notes 1641npm ping ok 1642npm -v ok current: v1.0.0, latest: v1.0.0 1643node -v ok current: v1.0.0, recommended: v1.0.0 1644npm config get registry ok using default registry (https://registry.npmjs.org/) 1645git executable in PATH ok /path/to/git 1646global bin folder in PATH ok {CWD}/global 1647` 1648