Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit e8d5787

Browse filesBrowse files
jpage-godaddytargos
authored andcommitted
doc: document MODULE_NOT_FOUND error
Document `MODULE_NOT_FOUND` as a possible `code` for errors. Also, some missorting of bottom references was fixed in passing. PR-URL: #21894 Fixes: #21890 Reviewed-By: James M Snell <jasnell@gmail.com>
1 parent 5e71d63 commit e8d5787
Copy full SHA for e8d5787

File tree

Expand file treeCollapse file tree

1 file changed

+22
-15
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

1 file changed

+22
-15
lines changed
Open diff view settings
Collapse file

‎doc/api/errors.md‎

Copy file name to clipboardExpand all lines: doc/api/errors.md
+22-15Lines changed: 22 additions & 15 deletions
  • Display the source diff
  • Display the rich diff
Original file line numberDiff line numberDiff line change
@@ -1831,8 +1831,14 @@ unknown file extension.
18311831

18321832
Creation of a [`zlib`][] object failed due to incorrect configuration.
18331833

1834-
[`'uncaughtException'`]: process.html#process_event_uncaughtexception
1834+
<a id="MODULE_NOT_FOUND"></a>
1835+
### MODULE_NOT_FOUND
1836+
1837+
A module file could not be resolved while attempting a [`require()`][] or
1838+
`import` operation.
1839+
18351840
[`--force-fips`]: cli.html#cli_force_fips
1841+
[`'uncaughtException'`]: process.html#process_event_uncaughtexception
18361842
[`child_process`]: child_process.html
18371843
[`cipher.getAuthTag()`]: crypto.html#crypto_cipher_getauthtag
18381844
[`Class: assert.AssertionError`]: assert.html#assert_class_assert_assertionerror
@@ -1842,24 +1848,14 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
18421848
[`dgram.createSocket()`]: dgram.html#dgram_dgram_createsocket_options_callback
18431849
[`ERR_INVALID_ARG_TYPE`]: #ERR_INVALID_ARG_TYPE
18441850
[`EventEmitter`]: events.html#events_class_eventemitter
1851+
[`fs`]: fs.html
1852+
[`fs.readdir`]: fs.html#fs_fs_readdir_path_options_callback
1853+
[`fs.readFileSync`]: fs.html#fs_fs_readfilesync_path_options
18451854
[`fs.symlink()`]: fs.html#fs_fs_symlink_target_path_type_callback
18461855
[`fs.symlinkSync()`]: fs.html#fs_fs_symlinksync_target_path_type
1856+
[`fs.unlink`]: fs.html#fs_fs_unlink_path_callback
18471857
[`hash.digest()`]: crypto.html#crypto_hash_digest_encoding
18481858
[`hash.update()`]: crypto.html#crypto_hash_update_data_inputencoding
1849-
[`readable._read()`]: stream.html#stream_readable_read_size_1
1850-
[`server.close()`]: net.html#net_server_close_callback
1851-
[`sign.sign()`]: crypto.html#crypto_sign_sign_privatekey_outputformat
1852-
[`stream.pipe()`]: stream.html#stream_readable_pipe_destination_options
1853-
[`stream.push()`]: stream.html#stream_readable_push_chunk_encoding
1854-
[`stream.unshift()`]: stream.html#stream_readable_unshift_chunk
1855-
[`stream.write()`]: stream.html#stream_writable_write_chunk_encoding_callback
1856-
[`Writable`]: stream.html#stream_class_stream_writable
1857-
[`subprocess.kill()`]: child_process.html#child_process_subprocess_kill_signal
1858-
[`subprocess.send()`]: child_process.html#child_process_subprocess_send_message_sendhandle_options_callback
1859-
[`fs.readFileSync`]: fs.html#fs_fs_readfilesync_path_options
1860-
[`fs.readdir`]: fs.html#fs_fs_readdir_path_options_callback
1861-
[`fs.unlink`]: fs.html#fs_fs_unlink_path_callback
1862-
[`fs`]: fs.html
18631859
[`http`]: http.html
18641860
[`https`]: https.html
18651861
[`libuv Error handling`]: http://docs.libuv.org/en/v1.x/errors.html
@@ -1868,8 +1864,19 @@ Creation of a [`zlib`][] object failed due to incorrect configuration.
18681864
[`new URLSearchParams(iterable)`]: url.html#url_constructor_new_urlsearchparams_iterable
18691865
[`process.send()`]: process.html#process_process_send_message_sendhandle_options_callback
18701866
[`process.setUncaughtExceptionCaptureCallback()`]: process.html#process_process_setuncaughtexceptioncapturecallback_fn
1867+
[`readable._read()`]: stream.html#stream_readable_read_size_1
1868+
[`require()`]: modules.html#modules_require
18711869
[`require('crypto').setEngine()`]: crypto.html#crypto_crypto_setengine_engine_flags
18721870
[`server.listen()`]: net.html#net_server_listen
1871+
[`server.close()`]: net.html#net_server_close_callback
1872+
[`sign.sign()`]: crypto.html#crypto_sign_sign_privatekey_outputformat
1873+
[`stream.pipe()`]: stream.html#stream_readable_pipe_destination_options
1874+
[`stream.push()`]: stream.html#stream_readable_push_chunk_encoding
1875+
[`stream.unshift()`]: stream.html#stream_readable_unshift_chunk
1876+
[`stream.write()`]: stream.html#stream_writable_write_chunk_encoding_callback
1877+
[`subprocess.kill()`]: child_process.html#child_process_subprocess_kill_signal
1878+
[`subprocess.send()`]: child_process.html#child_process_subprocess_send_message_sendhandle_options_callback
1879+
[`Writable`]: stream.html#stream_class_stream_writable
18731880
[`zlib`]: zlib.html
18741881
[ES6 module]: esm.html
18751882
[Node.js Error Codes]: #nodejs-error-codes

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.