@@ -2631,78 +2631,6 @@ removed: v10.0.0
2631
2631
Used when an attempt is made to use a ` zlib ` object after it has already been
2632
2632
closed.
2633
2633
2634
- ### Other error codes
2635
-
2636
- These errors have never been released, but had been present on master between
2637
- releases.
2638
-
2639
- <a id =" ERR_ENTRY_TYPE_MISMATCH " ></a >
2640
- #### ` ERR_ENTRY_TYPE_MISMATCH `
2641
-
2642
- The ` --entry-type=commonjs ` flag was used to attempt to execute an ` .mjs ` file
2643
- or a ` .js ` file where the nearest parent ` package.json ` contains
2644
- ` "type": "module" ` ; or
2645
- the ` --entry-type=module ` flag was used to attempt to execute a ` .cjs ` file or
2646
- a ` .js ` file where the nearest parent ` package.json ` either lacks a ` "type" `
2647
- field or contains ` "type": "commonjs" ` .
2648
-
2649
- <a id =" ERR_FS_WATCHER_ALREADY_STARTED " ></a >
2650
- #### ` ERR_FS_WATCHER_ALREADY_STARTED `
2651
-
2652
- An attempt was made to start a watcher returned by ` fs.watch() ` that has
2653
- already been started.
2654
-
2655
- <a id =" ERR_FS_WATCHER_NOT_STARTED " ></a >
2656
- #### ` ERR_FS_WATCHER_NOT_STARTED `
2657
-
2658
- An attempt was made to initiate operations on a watcher returned by
2659
- ` fs.watch() ` that has not yet been started.
2660
-
2661
- <a id =" ERR_HTTP2_ALREADY_SHUTDOWN " ></a >
2662
- #### ` ERR_HTTP2_ALREADY_SHUTDOWN `
2663
-
2664
- Occurs with multiple attempts to shutdown an HTTP/2 session.
2665
-
2666
- <a id =" ERR_HTTP2_ERROR " ></a >
2667
- #### ` ERR_HTTP2_ERROR `
2668
-
2669
- A non-specific HTTP/2 error has occurred.
2670
-
2671
- <a id =" ERR_INVALID_REPL_HISTORY " ></a >
2672
- #### ` ERR_INVALID_REPL_HISTORY `
2673
-
2674
- Used in the ` repl ` in case the old history file is used and an error occurred
2675
- while trying to read and parse it.
2676
-
2677
- <a id =" ERR_INVALID_REPL_TYPE " ></a >
2678
- #### ` ERR_INVALID_REPL_TYPE `
2679
-
2680
- The ` --entry-type=... ` flag is not compatible with the Node.js REPL.
2681
-
2682
- <a id =" ERR_STREAM_HAS_STRINGDECODER " ></a >
2683
- #### ` ERR_STREAM_HAS_STRINGDECODER `
2684
-
2685
- Used to prevent an abort if a string decoder was set on the Socket.
2686
-
2687
- ``` js
2688
- const Socket = require (' net' ).Socket ;
2689
- const instance = new Socket ();
2690
-
2691
- instance .setEncoding (' utf8' );
2692
- ```
2693
-
2694
- <a id =" ERR_STRING_TOO_LARGE " ></a >
2695
- #### ` ERR_STRING_TOO_LARGE `
2696
-
2697
- An attempt has been made to create a string larger than the maximum allowed
2698
- size.
2699
-
2700
- <a id =" ERR_TTY_WRITABLE_NOT_READABLE " ></a >
2701
- #### ` ERR_TTY_WRITABLE_NOT_READABLE `
2702
-
2703
- This ` Error ` is thrown when a read is attempted on a TTY ` WriteStream ` ,
2704
- such as ` process.stdout.on('data') ` .
2705
-
2706
2634
[ `'uncaughtException'` ] : process.html#process_event_uncaughtexception
2707
2635
[ `--disable-proto=throw` ] : cli.html#cli_disable_proto_mode
2708
2636
[ `--force-fips` ] : cli.html#cli_force_fips
0 commit comments