问:
I'm having problems with: TypeError: Cannot read properties of undefined (reading 'voice')
So, "I" am coding a discord bot using discord.js. I am new to java, but know a bit of python... I'm using slash commands with my bot and the error appears when I try to use a specific command(3 slash commands are somehow working).
Edit... Terminal error

```<code>TypeError: Cannot read properties of undefined (reading 'voice')
    at Object.execute (C:\Users\Uporabnik\Desktop\DiscBot\src\commands\Community\play.js:30:27)
    at Object.execute (C:\Users\Uporabnik\Desktop\DiscBot\src\events\interactionCreate.js:13:27)
    at Client.<anonymous> (C:\Users\Uporabnik\Desktop\DiscBot\src\functions\handelEvents.js:8:58)
    at Client.emit (node:events:513:28)
    at InteractionCreateAction.handle (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:489:22)
    at WebSocketShard.onMessage (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10)
    at callListener (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\ws\lib\event-target.js:290:14)
</code>```

The bot does not crash.

Edit... So here's the code for the command "play":

```<code>const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require('discord.js');
const { QueryType } = require("discord-player")

module.exports = {
    data: new SlashCommandBuilder()
        .setName("play")
        .setDescription("Plays songs from youtube")
        .addSubcommand((subcommand) =>
            subcommand
                .setName("song")
                .setDescription("plays a single song from a url")
                .addStringOption((option) => option.setName("url").setDescription("Paste the song's url").setRequired(true))
        )
        .addSubcommand((subcommand) =>
            subcommand
                .setName("playlist")
                .setDescription("Loads a playlist of songs from a url")
                .addStringOption((option) => option.setName("url").setDescription("Paste the playlist's url").setRequired(true))
        )
        .addSubcommand((subcommand) =>
            subcommand
                .setName("search")
                .setDescription("Searches for sogn based on provided keywords")
                .addStringOption((option) =>
                    option.setName("searchterms").setDescription("Type in the search keywords").setRequired(true)
                )
        ),
        async execute( client, interaction ) {
        if (!interaction.member.voice.channel) return interaction.editReply("You need to be in a voice channel to use this command")

        const queue = await client.player.createQueue(interaction.guild)
        if (!queue.connection) await queue.connect(interaction.member.voice.channel)

        let embed = new MessageEmbed()

        if (interaction.options.getSubcommand() === "song") {
            let url = interaction.options.getString("url")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.YOUTUBE_VIDEO
            })
            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const song = result.tracks[0]
            await queue.addTrack(song)
            embed
                .setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
                .setThumbnail(song.thumbnail)
                .setFooter({ text: `Duration: ${song.duration}`})

        } else if (interaction.options.getSubcommand() === "playlist") {
            let url = interaction.options.getString("url")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.YOUTUBE_PLAYLIST
            })

            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const playlist = result.playlist
            await queue.addTracks(result.tracks)
            embed
                .setDescription(`**${result.tracks.length} songs from [${playlist.title}](${playlist.url})** have been added to the Queue`)
                .setThumbnail(playlist.thumbnail)
        } else if (interaction.options.getSubcommand() === "search") {
            let url = interaction.options.getString("searchterms")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.AUTO
            })

            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const song = result.tracks[0]
            await queue.addTrack(song)
            embed
                .setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
                .setThumbnail(song.thumbnail)
                .setFooter({ text: `Duration: ${song.duration}`})
        }
        if (!queue.playing) await queue.play()
        await interaction.editReply({
            embeds: [embed]
        })
    },
}
</code>```

The code is not entirely mine, and I did change some things...
Hope someone understands my problem and thanks for reply.

Body:
So, "I" am coding a discord bot using discord.js. I am new to java, but know a bit of python... I'm using slash commands with my bot and the error appears when I try to use a specific command(3 slash commands are somehow working).
Edit... Terminal error

TypeError: Cannot read properties of undefined (reading 'voice')
    at Object.execute (C:\Users\Uporabnik\Desktop\DiscBot\src\commands\Community\play.js:30:27)
    at Object.execute (C:\Users\Uporabnik\Desktop\DiscBot\src\events\interactionCreate.js:13:27)
    at Client.<anonymous> (C:\Users\Uporabnik\Desktop\DiscBot\src\functions\handelEvents.js:8:58)
    at Client.emit (node:events:513:28)
    at InteractionCreateAction.handle (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\actions\InteractionCreate.js:97:12)
    at module.exports [as INTERACTION_CREATE] (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\handlers\INTERACTION_CREATE.js:4:36)
    at WebSocketManager.handlePacket (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketManager.js:352:31)
    at WebSocketShard.onPacket (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:489:22)
    at WebSocketShard.onMessage (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\discord.js\src\client\websocket\WebSocketShard.js:328:10)
    at callListener (C:\Users\Uporabnik\Desktop\DiscBot\node_modules\ws\lib\event-target.js:290:14)

The bot does not crash.

Edit... So here's the code for the command "play":

const { SlashCommandBuilder } = require('@discordjs/builders');
const { MessageEmbed } = require('discord.js');
const { QueryType } = require("discord-player")

module.exports = {
    data: new SlashCommandBuilder()
        .setName("play")
        .setDescription("Plays songs from youtube")
        .addSubcommand((subcommand) =>
            subcommand
                .setName("song")
                .setDescription("plays a single song from a url")
                .addStringOption((option) => option.setName("url").setDescription("Paste the song's url").setRequired(true))
        )
        .addSubcommand((subcommand) =>
            subcommand
                .setName("playlist")
                .setDescription("Loads a playlist of songs from a url")
                .addStringOption((option) => option.setName("url").setDescription("Paste the playlist's url").setRequired(true))
        )
        .addSubcommand((subcommand) =>
            subcommand
                .setName("search")
                .setDescription("Searches for sogn based on provided keywords")
                .addStringOption((option) =>
                    option.setName("searchterms").setDescription("Type in the search keywords").setRequired(true)
                )
        ),
        async execute( client, interaction ) {
        if (!interaction.member.voice.channel) return interaction.editReply("You need to be in a voice channel to use this command")

        const queue = await client.player.createQueue(interaction.guild)
        if (!queue.connection) await queue.connect(interaction.member.voice.channel)

        let embed = new MessageEmbed()

        if (interaction.options.getSubcommand() === "song") {
            let url = interaction.options.getString("url")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.YOUTUBE_VIDEO
            })
            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const song = result.tracks[0]
            await queue.addTrack(song)
            embed
                .setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
                .setThumbnail(song.thumbnail)
                .setFooter({ text: `Duration: ${song.duration}`})

        } else if (interaction.options.getSubcommand() === "playlist") {
            let url = interaction.options.getString("url")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.YOUTUBE_PLAYLIST
            })

            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const playlist = result.playlist
            await queue.addTracks(result.tracks)
            embed
                .setDescription(`**${result.tracks.length} songs from [${playlist.title}](${playlist.url})** have been added to the Queue`)
                .setThumbnail(playlist.thumbnail)
        } else if (interaction.options.getSubcommand() === "search") {
            let url = interaction.options.getString("searchterms")
            const result = await client.player.search(url, {
                requestedBy: interaction.user,
                searchEngine: QueryType.AUTO
            })

            if (result.tracks.length === 0)
                return interaction.editReply("No results")

            const song = result.tracks[0]
            await queue.addTrack(song)
            embed
                .setDescription(`**[${song.title}](${song.url})** has been added to the Queue`)
                .setThumbnail(song.thumbnail)
                .setFooter({ text: `Duration: ${song.duration}`})
        }
        if (!queue.playing) await queue.play()
        await interaction.editReply({
            embeds: [embed]
        })
    },
}

The code is not entirely mine, and I did change some things...
Hope someone understands my problem and thanks for reply.


来源: stackexchange

问:
Hint for generic type seems wrong in the playground?
Consider the following code:

```<code>interface MyMouseEvent {
  x: number;
  y: number;
}

interface MyKeyboardEvent {
  key: string;
}

interface MyEventObjects {
  click: MyMouseEvent;
  keypress: MyKeyboardEvent;
}

function handleEvent<K extends keyof MyEventObjects>(
  eventName: K,
  callback: (e: MyEventObjects[K]) => void
) {

}

handleEvent();
handleEvent('click', (e: MyMouseEvent) => {});
</code>```

Error popup for the call with no args says callback is (e: MyMouseEvent | MyKeyboardEvent) => void. But by my understanding of covariance if that is the correct type for callback, that second call should fail. But it doesn't. And indeed, it seems like the popup is wrong:

```<code>function test(f: (e: MyMouseEvent | MyKeyboardEvent) => void): void {}
test('click', (e: MyMouseEvent) => {});
</code>```

The call to test does fail, and fails with exactly the message I would expect. So my understanding is that the popup for callback in the no argument call to handleEvent is actually (e: MyMouseEvent) => void | (e: MyKeyboardEvent) => void. Is this correct?

Playground

ContentLicense: CC BY-SA 4.0

Body:
Consider the following code:

interface MyMouseEvent {
  x: number;
  y: number;
}

interface MyKeyboardEvent {
  key: string;
}

interface MyEventObjects {
  click: MyMouseEvent;
  keypress: MyKeyboardEvent;
}

function handleEvent<K extends keyof MyEventObjects>(
  eventName: K,
  callback: (e: MyEventObjects[K]) => void
) {

}

handleEvent();
handleEvent('click', (e: MyMouseEvent) => {});

Error popup for the call with no args says callback is (e: MyMouseEvent | MyKeyboardEvent) => void. But by my understanding of covariance if that is the correct type for callback, that second call should fail. But it doesn't. And indeed, it seems like the popup is wrong:

function test(f: (e: MyMouseEvent | MyKeyboardEvent) => void): void {}
test('click', (e: MyMouseEvent) => {});

The call to test does fail, and fails with exactly the message I would expect. So my understanding is that the popup for callback in the no argument call to handleEvent is actually (e: MyMouseEvent) => void | (e: MyKeyboardEvent) => void. Is this correct?

<a href="https://www.typescriptlang.org/play?ssl=27&ssc=40&pln=1&pc=1#code/JYOwLgpgTgZghgYwgAgLIE9UHsCuBnCAUQDcJxkBvAKGWQA8AuZEHAWwCNoBuG5dJlh25UAvlSqhIsRCgwBpCOnZY4UACYkyYSrwDWipnjBRQAcx5iJ4aPCRp0m8AHl2AKwgIweHbQQAbYARdJgxsfCJScB5afXQABygIPDwQ9AUlFXVHMAtxGBwQT2AsEGQACzgQNT8IrQAeOWQIOkgq71isGHtsl3dPPAA+AApeCEiwADk4VggmOQAaXgQ4Pz92RGDkIdnu8d6PLwBtOQBdAEpkAF4B5GIsYDUqC+paUXEKqprsobOeD+rauAhgByfyBXTA+ZbHahXAEbIXa6UES-PIFIolZCQIxDGBMbapMLw8bIAA+9nSylUGnGiJudweZyYDLUyKo2LAPx4HJBYKCkOhhLhgLAdORqKAA" rel="nofollow noreferrer">Playground


问:
React Native/Firebase: How to use a realtime database without having private keys surfacing on client-side?
I'm currently using a RealTime database to implement a chat for my react native application. In prepping it for production, I'm trying to secure the connection. I know that is it best to have all connections in the backend so it's not available on client-side. However, to use the onValue function from Firebase, it needs the ref details. I tried to make the backend return the ref, but it only returns the URL to the table. Is there a way to have the frontend auto update the chat with onValue calls in the backend? I'm using NodeJS as my backend. Thank you!

I've tried passing the db/ref. I know socket is a possible implementation, but that would require a larger rewrite. Trying to avoid that if possible.


问:
PencilKit '.monoline' as a PKInkingTool.InkType suddenly doesn't work anymore
I am writing a program using PencilKit. Yesterday, everything worked fine with this line:

```<code>@State var pencilStyle: PKInkingTool.InkType = .monoline
</code>```

But today, i am getting this Error:

Type 'PKInkingTool.InkType' has no member 'monoline'"

When I started Xcode Today, it downloaded a new Simulator for iOS 16.2.
How can I fix this issue? I can't use my Project without fixing this...

Body:
I am writing a program using PencilKit. Yesterday, everything worked fine with this line:

@State var pencilStyle: PKInkingTool.InkType = .monoline

But today, i am getting this Error:

Type 'PKInkingTool.InkType' has no member 'monoline'"

When I started Xcode Today, it downloaded a new Simulator for iOS 16.2.
How can I fix this issue? I can't use my Project without fixing this...


问:
'The type initializer for 'MySql.Data.MySqlClient.MySqlConfiguration' threw an exception.'
I am trying to connect my xamarin mobile app to mysql but it always throws this exception.

I have installed the MySQL Connector/NET through Package Manager Console window in visual studio Install-Package MySql.Data.

This error shows up after running successfully the project on line connection.open().

Can someone explain to me the reason or help me solve it.

here's my code:

```<code>using MySql.Data.MySqlClient;
using System;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace tpExam

{

    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class login : ContentPage
    {

        public login()
        {
            InitializeComponent();
        }
        private void ShowToast(string message)
        {
            DependencyService.Get<IToastNotification>().Show(message);
        }
            private void Login(Object sender,EventArgs e)
        {
            MySqlConnection connection = new MySqlConnection("Server=localhost;Database=tpexam;Uid=root;Pwd=;");
            string username = txtUsername.Text;
            string password = txtpassword.Text;

            using(connection)
            {
                try
                {
                    connection.Open();
                }
                catch (MySqlException ex)
                {
                    Console.WriteLine(ex.Message);
                }
                string query= $"SELECT * FROM user WHERE username='{username}' AND password='{password}'";
               using(MySqlCommand command = new MySqlCommand(query,connection))
                {
                    using(MySqlDataReader reader = command.ExecuteReader())
                    {
                        if (reader.Read())
                        {
                            // A match was found, so check whether the user is an admin or not
                            Navigation.PushAsync(new HomePage());

                        }
                        else
                        {
                            ShowToast("Invalid username or password");
                        }
                    }
                }
            }

        }
        private void TapGestureRecognizer_Tapped(object sender,EventArgs e)
        {
            Navigation.PushAsync(new RegisterPage());
        }

    }
}
</code>```

Body:
I am trying to connect my xamarin mobile app to mysql but it always throws this exception.

I have installed the MySQL Connector/NET through Package Manager Console window in visual studio Install-Package MySql.Data.

This error shows up after running successfully the project on line connection.open().

Can someone explain to me the reason or help me solve it.

here's my code:

using MySql.Data.MySqlClient;
using System;

using Xamarin.Forms;
using Xamarin.Forms.Xaml;

namespace tpExam

{

    [XamlCompilation(XamlCompilationOptions.Compile)]
    public partial class login : ContentPage
    {

        public login()
        {
            InitializeComponent();
        }
        private void ShowToast(string message)
        {
            DependencyService.Get<IToastNotification>().Show(message);
        }
            private void Login(Object sender,EventArgs e)
        {
            MySqlConnection connection = new MySqlConnection("Server=localhost;Database=tpexam;Uid=root;Pwd=;");
            string username = txtUsername.Text;
            string password = txtpassword.Text;

            using(connection)
            {
                try
                {
                    connection.Open();
                }
                catch (MySqlException ex)
                {
                    Console.WriteLine(ex.Message);
                }
                string query= $"SELECT * FROM user WHERE username='{username}' AND password='{password}'";
               using(MySqlCommand command = new MySqlCommand(query,connection))
                {
                    using(MySqlDataReader reader = command.ExecuteReader())
                    {
                        if (reader.Read())
                        {
                            // A match was found, so check whether the user is an admin or not
                            Navigation.PushAsync(new HomePage());

                        }
                        else
                        {
                            ShowToast("Invalid username or password");
                        }
                    }
                }
            }

        }
        private void TapGestureRecognizer_Tapped(object sender,EventArgs e)
        {
            Navigation.PushAsync(new RegisterPage());
        }

    }
}


问:
Markdown: Use Custom Reference from other MD File
I'm looking for a way, if this is possible, to use a custom reference from another MD file. The most similar question I could find, but not exactly what I'm looking to do, was here: Markdown: Reference to section from another file

Say I have to files; content.md & references.md, and references.md contains the following:

```<code>[Click Me][custom-reference]

[custom-reference]: https://stackoverflow.com
</code>```

Which results in this:

Click Me

If I want to use [custom-reference] in content.md is it possible?

Body:
I'm looking for a way, if this is possible, to use a custom reference from another MD file. The most similar question I could find, but not exactly what I'm looking to do, was here: Markdown: Reference to section from another file

Say I have to files; content.md & references.md, and references.md contains the following:

[Click Me][custom-reference]

[custom-reference]: https://stackoverflow.com

Which results in this:

Click Me

If I want to use [custom-reference] in content.md is it possible?


问:
Android Emulator - Connecting two emulator Instances via networking with different API-Level
I'm trying to develope an android application (with min-API-Level 28) with Java that communicates with an other device over a socket connection. One device is creating a Server instance and the other device should connect to this server.

For this purpose, I'm using Android-Emulator instances provided by Android Studio.

I followed the instructions at https://developer.android.com/studio/run/emulator-networking#connecting , but encountered that the provided IP-Adress ranges are not the same for every API-Level.
One Emulator-Instance running API 28 is using 192.168.232.0/24 address range, the other one running API-30 is using the provided 10.0.2.0/24 range.

So given the following scenario:
the Server (running on an API-28 Emulator-Instance) is creating the ServerSocket:

```<code>this.serverSocket = new ServerSocket();
// 192.168.232.2 is the device's IP-Address IF(!) the Emulator-Instance uses API Level 28
// 55555 the specific ServerPort
this.serverSocket.bind(new InetSocketAddress("192.168.232.2", 55555));
</code>```

and after that accept incoming connections:

```<code>client = this.serverSocket.accept();
</code>```

the Client (running on an API-30 Emulator-Instance) is trying to connect to this Server:

```<code>this.server = new Socket("10.0.2.2", 55556);
</code>```

as described in the provided docs, 10.0.2.2 is the developement Device aka my Computer and 55556 a chosen local-port.

On the Server-Instance I added a redirect via the android emulator console

```<code>redir add tcp:55556:55555
</code>```

But the Client can't connect to the Server. So far I'm clueless.
Any ideas what went wrong here?

@Edit - Tried to clarify that I'm using Android Emulators instead of real Devices

Body:
I'm trying to develope an android application (with min-API-Level 28) with Java that communicates with an other device over a socket connection. One device is creating a Server instance and the other device should connect to this server.

For this purpose, I'm using Android-Emulator instances provided by Android Studio.

I followed the instructions at https://developer.android.com/studio/run/emulator-networking#connecting , but encountered that the provided IP-Adress ranges are not the same for every API-Level.
One Emulator-Instance running API 28 is using 192.168.232.0/24 address range, the other one running API-30 is using the provided 10.0.2.0/24 range.

So given the following scenario:
the Server (running on an API-28 Emulator-Instance) is creating the ServerSocket:

this.serverSocket = new ServerSocket();
// 192.168.232.2 is the device's IP-Address IF(!) the Emulator-Instance uses API Level 28
// 55555 the specific ServerPort
this.serverSocket.bind(new InetSocketAddress("192.168.232.2", 55555));

and after that accept incoming connections:

client = this.serverSocket.accept();

the Client (running on an API-30 Emulator-Instance) is trying to connect to this Server:

this.server = new Socket("10.0.2.2", 55556);

as described in the provided docs, 10.0.2.2 is the developement Device aka my Computer and 55556 a chosen local-port.

On the Server-Instance I added a redirect via the android emulator console

redir add tcp:55556:55555

But the Client can't connect to the Server. So far I'm clueless.
Any ideas what went wrong here?

@Edit - Tried to clarify that I'm using Android Emulators instead of real Devices


问:
code is not running after re-downloading code from github
So i made a mistake on my code.
then I downloaded my code from stable version I had on git.
now I cant run it.

i tried to install the packages using npm install but I am getting this error

```<code>npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mean-course@0.0.0
npm ERR! Found: zone.js@0.8.29
npm ERR! node_modules/zone.js
npm ERR!   zone.js@"^0.8.26" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.9.1" from @angular/core@8.2.14
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"^8.0.0" from the root project
npm ERR!   peer @angular/core@">=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0" from codelyzer@5.2.2
npm ERR!   node_modules/codelyzer
npm ERR!     dev codelyzer@"^5.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/juan/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/juan/.npm/_logs/2022-12-17T19_54_52_433Z-debug-0.log
</code>```

I tried to run the code using npm install --legacy-peer-deps and I get the following error:

```
(base) juan@juans-Air-2 final % npm install --legacy-peer-deps
npm WARN deprecated bcrypt@2.0.1: versions < v5.0.0 do not handle NUL in passwords properly
npm WARN deprecated date-format@2.1.0: 2.x is no longer supported. Please upgrade to 4.x or higher.
npm WARN deprecated log4js@4.5.1: 4.x is no longer supported. Please upgrade to 6.x or higher.
npm WARN deprecated streamroller@1.0.6: 1.x is no longer supported. Please upgrade to 3.x or higher.
npm WARN deprecated protractor@5.4.4: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated node-fetch-npm@2.0.4: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated acorn-dynamic-import@4.0.0: This is probably built in to whatever tool you're using. If you still need it... idk
npm WARN deprecated @schematics/update@0.803.29: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@3.0.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh /var/folders/lh/nl1xy3g132748mjl5h0j3gsc0000gn/T/install-3acd8054.sh
npm ERR! CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
npm ERR!   CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
npm ERR!   CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.9.1
npm ERR! node-pre-gyp info using node@16.17.0 | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for bcrypt@2.0.1 and node@16.17.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.1 found at "/Library/Frameworks/Python.framework/Versions/3.11/bin/python3"
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/juan/Desktop/final/node_modules/bcrypt/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/juan/Library/Caches/node-gyp/16.17.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/juan/Library/Caches/node-gyp/16.17.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/juan/Library/Caches/node-gyp/16.17.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/juan/Desktop/final/node_modules/bcrypt',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
npm ERR! X(Boolean)
npm ERR! ^~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
npm ERR!       val->To ## TYPE(isolate->GetCurrentContext())                            \
npm ERR!                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3086:37: note: passing argument to parameter 'isolate' here
npm ERR!   Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:22:1: error: no member named 'FromMaybe' in 'v8::Local<v8::Boolean>'
npm ERR! X(Boolean)
npm ERR! ^~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:19:12: note: expanded from macro 'X'
npm ERR!           .FromMaybe(v8::Local<v8::TYPE>()));                                  \
npm ERR!            ^
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
npm ERR! X(bool, Boolean)
npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
npm ERR!   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3096:30: note: passing argument to parameter 'isolate' here
npm ERR!   bool BooleanValue(Isolate* isolate) const;
npm ERR!                              ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from returned value of type 'bool' to function return type 'imp::ToFactory<bool>::return_t' (aka 'Maybe<bool>')
npm ERR! X(bool, Boolean)
npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:37:10: note: expanded from macro 'X'
npm ERR!   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'bool' to 'const v8::Maybe<bool> &' for 1st argument
npm ERR! class Maybe {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'bool' to 'v8::Maybe<bool> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10492:12: note: explicit constructor is not a candidate
npm ERR!   explicit Maybe(const T& t) : has_value_(true), value_(t) {}
npm ERR!            ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:203:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
npm ERR!   return scope.Escape(v8::Function::New( isolate
npm ERR!                                          ^~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
npm ERR! class Local {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
npm ERR!   V8_INLINE Local(Local<S> that)
npm ERR!             ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR!   explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR!                      ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4754:22: note: passing argument to parameter 'context' here
npm ERR!       Local<Context> context, FunctionCallback callback,
npm ERR!                      ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:203:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
npm ERR!   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!          ~~~~~~~~~~~~~~~~~~~~~      ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:6196:23: note: 'New' declared here
npm ERR!   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!                       ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!       v8::Local<v8::String> string = from->ToString();
npm ERR!                                      ~~~~~~~~~~~~~~ ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3048:44: note: 'ToString' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!                                            ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1034:29: error: no viable conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String>'
npm ERR!       v8::Local<v8::String> string = from->ToString();
npm ERR!                             ^        ~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::Local<v8::String> &' for 1st argument
npm ERR! class Local {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR!   V8_INLINE Local(Local<S> that)
npm ERR!             ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR!   explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR!                      ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
npm ERR!         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!                                     ^~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3277:26: note: passing argument to parameter 'isolate' here
npm ERR!   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!                          ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1818:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1824:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(key, value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1830:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(index, value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1836:32: error: no matching member function for call to 'Get'
npm ERR!         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1842:48: error: no matching member function for call to 'Get'
npm ERR!     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1847:48: error: no matching member function for call to 'Get'
npm ERR!     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2657:
npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
npm ERR!     assert(persistent().IsNearDeath());
npm ERR!            ~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm ERR!     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm ERR!                         ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2657:
npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object>'
npm ERR!     persistent().MarkIndependent();
npm ERR!     ~~~~~~~~~~~~ ^
npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
npm ERR!     assert(wrap->handle_.IsNearDeath());
npm ERR!            ~~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm ERR!     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm ERR!                         ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2753:
npm ERR! ../node_modules/nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
npm ERR!       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:5614:3: note: 'GetContents' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
npm ERR!   ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! ../src/bcrypt_node.cc:66:21: error: no matching constructor for initialization of 'String::Utf8Value'
npm ERR!   String::Utf8Value value(str);
npm ERR!                     ^     ~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3588:5: note: candidate constructor not viable: no known conversion from 'Local<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3581:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 1 warning and 20 errors generated.
npm ERR! make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding" "--napi_version=8" "--node_abi_napi=napi"
npm ERR! gyp ERR! cwd /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! gyp ERR! node -v v16.17.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/juan/Desktop/final/node_modules/bcrypt/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1093:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Darwin 21.6.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/juan/Desktop/final/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! node-pre-gyp ERR! node -v v16.17.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.9.1
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/juan/.npm/_logs/2022-12-17T19_57_40_323Z-debug-0.log
```

I have no clue what is going on here :(
the code was working 2 days ago. now its not working at all

Body:
So i made a mistake on my code.
then I downloaded my code from stable version I had on git.
now I cant run it.

i tried to install the packages using npm install but I am getting this error

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: mean-course@0.0.0
npm ERR! Found: zone.js@0.8.29
npm ERR! node_modules/zone.js
npm ERR!   zone.js@"^0.8.26" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer zone.js@"~0.9.1" from @angular/core@8.2.14
npm ERR! node_modules/@angular/core
npm ERR!   @angular/core@"^8.0.0" from the root project
npm ERR!   peer @angular/core@">=2.3.1 <10.0.0 || >9.0.0-beta <10.0.0 || >9.1.0-beta <10.0.0 || >9.2.0-beta <10.0.0" from codelyzer@5.2.2
npm ERR!   node_modules/codelyzer
npm ERR!     dev codelyzer@"^5.0.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/juan/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/juan/.npm/_logs/2022-12-17T19_54_52_433Z-debug-0.log

I tried to run the code using npm install --legacy-peer-deps and I get the following error:

(base) juan@juans-Air-2 final % npm install --legacy-peer-deps
npm WARN deprecated bcrypt@2.0.1: versions < v5.0.0 do not handle NUL in passwords properly
npm WARN deprecated date-format@2.1.0: 2.x is no longer supported. Please upgrade to 4.x or higher.
npm WARN deprecated log4js@4.5.1: 4.x is no longer supported. Please upgrade to 6.x or higher.
npm WARN deprecated streamroller@1.0.6: 1.x is no longer supported. Please upgrade to 3.x or higher.
npm WARN deprecated protractor@5.4.4: We have news to share - Protractor is deprecated and will reach end-of-life by Summer 2023. To learn more and find out about other options please refer to this post on the Angular blog. Thank you for using and contributing to Protractor. https://goo.gle/state-of-e2e-in-angular
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
npm WARN deprecated source-map-url@0.4.1: See https://github.com/lydell/source-map-url#deprecated
npm WARN deprecated source-map-resolve@0.5.3: See https://github.com/lydell/source-map-resolve#deprecated
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated readdir-scoped-modules@1.1.0: This functionality has been moved to @npmcli/fs
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated read-package-tree@5.3.1: The functionality that this package provided is now in @npmcli/arborist
npm WARN deprecated querystring@0.2.0: The querystring API is considered Legacy. new code should use the URLSearchParams API instead.
npm WARN deprecated node-fetch-npm@2.0.4: This module is not used anymore, npm uses minipass-fetch for its fetch implementation now
npm WARN deprecated multer@1.4.4: Multer 1.x is affected by CVE-2022-24434. This is fixed in v1.4.4-lts.1 which drops support for versions of Node.js before 6. Please upgrade to at least Node.js 6 and version 1.4.4-lts.1 of Multer. If you need support for older versions of Node.js, we are open to accepting patches that would fix the CVE on the main 1.x release line, whilst maintaining compatibility with Node.js 0.10.
npm WARN deprecated json3@3.3.2: Please use the native JSON object instead of JSON 3
npm WARN deprecated ini@1.3.5: Please update to ini >=1.3.6 to avoid a prototype pollution issue
npm WARN deprecated har-validator@5.1.5: this library is no longer supported
npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.
npm WARN deprecated chokidar@2.1.8: Chokidar 2 does not receive security updates since 2019. Upgrade to chokidar 3 with 15x fewer dependencies
npm WARN deprecated acorn-dynamic-import@4.0.0: This is probably built in to whatever tool you're using. If you still need it... idk
npm WARN deprecated @schematics/update@0.803.29: This was an internal-only Angular package up through Angular v11 which is no longer used or maintained. Upgrade Angular to v12+ to remove this dependency.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js@3.0.1: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! command failed
npm ERR! command sh /var/folders/lh/nl1xy3g132748mjl5h0j3gsc0000gn/T/install-3acd8054.sh
npm ERR! CXX(target) Release/obj.target/bcrypt_lib/src/blowfish.o
npm ERR!   CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt.o
npm ERR!   CXX(target) Release/obj.target/bcrypt_lib/src/bcrypt_node.o
npm ERR! Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp info it worked if it ends with ok
npm ERR! node-pre-gyp info using node-pre-gyp@0.9.1
npm ERR! node-pre-gyp info using node@16.17.0 | darwin | arm64
npm ERR! node-pre-gyp info check checked for "/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node" (not found)
npm ERR! node-pre-gyp http GET https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp http 404 https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp ERR! Tried to download(404): https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! node-pre-gyp ERR! Pre-built binaries not found for bcrypt@2.0.1 and node@16.17.0 (node-v93 ABI, unknown) (falling back to source compile with node-gyp)
npm ERR! node-pre-gyp http 404 status code downloading tarball https://github.com/kelektiv/node.bcrypt.js/releases/download/v2.0.1/bcrypt_lib-v2.0.1-node-v93-darwin-arm64-unknown.tar.gz
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info find Python using Python version 3.11.1 found at "/Library/Frameworks/Python.framework/Versions/3.11/bin/python3"
npm ERR! gyp info spawn /Library/Frameworks/Python.framework/Versions/3.11/bin/python3
npm ERR! gyp info spawn args [
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/gyp/gyp_main.py',
npm ERR! gyp info spawn args   'binding.gyp',
npm ERR! gyp info spawn args   '-f',
npm ERR! gyp info spawn args   'make',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/juan/Desktop/final/node_modules/bcrypt/build/config.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/usr/local/lib/node_modules/npm/node_modules/node-gyp/addon.gypi',
npm ERR! gyp info spawn args   '-I',
npm ERR! gyp info spawn args   '/Users/juan/Library/Caches/node-gyp/16.17.0/include/node/common.gypi',
npm ERR! gyp info spawn args   '-Dlibrary=shared_library',
npm ERR! gyp info spawn args   '-Dvisibility=default',
npm ERR! gyp info spawn args   '-Dnode_root_dir=/Users/juan/Library/Caches/node-gyp/16.17.0',
npm ERR! gyp info spawn args   '-Dnode_gyp_dir=/usr/local/lib/node_modules/npm/node_modules/node-gyp',
npm ERR! gyp info spawn args   '-Dnode_lib_file=/Users/juan/Library/Caches/node-gyp/16.17.0/<(target_arch)/node.lib',
npm ERR! gyp info spawn args   '-Dmodule_root_dir=/Users/juan/Desktop/final/node_modules/bcrypt',
npm ERR! gyp info spawn args   '-Dnode_engine=v8',
npm ERR! gyp info spawn args   '--depth=.',
npm ERR! gyp info spawn args   '--no-parallel',
npm ERR! gyp info spawn args   '--generator-output',
npm ERR! gyp info spawn args   'build',
npm ERR! gyp info spawn args   '-Goutput_dir=.'
npm ERR! gyp info spawn args ]
npm ERR! gyp info ok
npm ERR! gyp info it worked if it ends with ok
npm ERR! gyp info using node-gyp@9.0.0
npm ERR! gyp info using node@16.17.0 | darwin | arm64
npm ERR! gyp info spawn make
npm ERR! gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:22:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
npm ERR! X(Boolean)
npm ERR! ^~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:18:23: note: expanded from macro 'X'
npm ERR!       val->To ## TYPE(isolate->GetCurrentContext())                            \
npm ERR!                       ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3086:37: note: passing argument to parameter 'isolate' here
npm ERR!   Local<Boolean> ToBoolean(Isolate* isolate) const;
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:22:1: error: no member named 'FromMaybe' in 'v8::Local<v8::Boolean>'
npm ERR! X(Boolean)
npm ERR! ^~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:19:12: note: expanded from macro 'X'
npm ERR!           .FromMaybe(v8::Local<v8::TYPE>()));                                  \
npm ERR!            ^
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from 'Local<v8::Context>' to 'v8::Isolate *'
npm ERR! X(bool, Boolean)
npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:37:29: note: expanded from macro 'X'
npm ERR!   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!                             ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3096:30: note: passing argument to parameter 'isolate' here
npm ERR!   bool BooleanValue(Isolate* isolate) const;
npm ERR!                              ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:202:
npm ERR! In file included from ../node_modules/nan/nan_converters.h:67:
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:40:1: error: no viable conversion from returned value of type 'bool' to function return type 'imp::ToFactory<bool>::return_t' (aka 'Maybe<bool>')
npm ERR! X(bool, Boolean)
npm ERR! ^~~~~~~~~~~~~~~~
npm ERR! ../node_modules/nan/nan_converters_43_inl.h:37:10: note: expanded from macro 'X'
npm ERR!   return val->NAME ## Value(isolate->GetCurrentContext());                     \
npm ERR!          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'bool' to 'const v8::Maybe<bool> &' for 1st argument
npm ERR! class Maybe {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10437:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'bool' to 'v8::Maybe<bool> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:10492:12: note: explicit constructor is not a candidate
npm ERR!   explicit Maybe(const T& t) : has_value_(true), value_(t) {}
npm ERR!            ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:203:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:103:42: error: no viable conversion from 'v8::Isolate *' to 'Local<v8::Context>'
npm ERR!   return scope.Escape(v8::Function::New( isolate
npm ERR!                                          ^~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'v8::Isolate *' to 'const v8::Local<v8::Context> &' for 1st argument
npm ERR! class Local {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'v8::Isolate *' to 'v8::Local<v8::Context> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local<type-parameter-0-0>' against 'v8::Isolate *'
npm ERR!   V8_INLINE Local(Local<S> that)
npm ERR!             ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR!   explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR!                      ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4754:22: note: passing argument to parameter 'context' here
npm ERR!       Local<Context> context, FunctionCallback callback,
npm ERR!                      ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:203:
npm ERR! In file included from ../node_modules/nan/nan_new.h:189:
npm ERR! ../node_modules/nan/nan_implementation_12_inl.h:337:37: error: too few arguments to function call, expected 2, have 1
npm ERR!   return v8::StringObject::New(value).As<v8::StringObject>();
npm ERR!          ~~~~~~~~~~~~~~~~~~~~~      ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:6196:23: note: 'New' declared here
npm ERR!   static Local<Value> New(Isolate* isolate, Local<String> value);
npm ERR!                       ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1034:53: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!       v8::Local<v8::String> string = from->ToString();
npm ERR!                                      ~~~~~~~~~~~~~~ ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3048:44: note: 'ToString' declared here
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<String> ToString(
npm ERR!                                            ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1034:29: error: no viable conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String>'
npm ERR!       v8::Local<v8::String> string = from->ToString();
npm ERR!                             ^        ~~~~~~~~~~~~~~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit copy constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'const v8::Local<v8::String> &' for 1st argument
npm ERR! class Local {
npm ERR!       ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:200:7: note: candidate constructor (the implicit move constructor) not viable: no known conversion from 'MaybeLocal<v8::String>' to 'v8::Local<v8::String> &&' for 1st argument
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:204:13: note: candidate template ignored: could not match 'Local' against 'MaybeLocal'
npm ERR!   V8_INLINE Local(Local<S> that)
npm ERR!             ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:348:22: note: explicit constructor is not a candidate
npm ERR!   explicit V8_INLINE Local(T* that) : val_(that) {}
npm ERR!                      ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1044:37: error: cannot initialize a parameter of type 'v8::Isolate *' with an lvalue of type 'char *'
npm ERR!         length_ = string->WriteUtf8(str_, static_cast<int>(len), 0, flags);
npm ERR!                                     ^~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3277:26: note: passing argument to parameter 'isolate' here
npm ERR!   int WriteUtf8(Isolate* isolate, char* buffer, int length = -1,
npm ERR!                          ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1818:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(New(key).ToLocalChecked(), value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1824:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(key, value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1830:28: error: no matching member function for call to 'Set'
npm ERR!     New(persistentHandle)->Set(index, value);
npm ERR!     ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3961:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context,
npm ERR!                                     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3964:37: note: candidate function not viable: requires 3 arguments, but 2 were provided
npm ERR!   V8_WARN_UNUSED_RESULT Maybe<bool> Set(Local<Context> context, uint32_t index,
npm ERR!                                     ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1836:32: error: no matching member function for call to 'Get'
npm ERR!         New(persistentHandle)->Get(New(key).ToLocalChecked()));
npm ERR!         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1842:48: error: no matching member function for call to 'Get'
npm ERR!     return scope.Escape(New(persistentHandle)->Get(key));
npm ERR!                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! ../node_modules/nan/nan.h:1847:48: error: no matching member function for call to 'Get'
npm ERR!     return scope.Escape(New(persistentHandle)->Get(index));
npm ERR!                         ~~~~~~~~~~~~~~~~~~~~~~~^~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4007:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:4010:43: note: candidate function not viable: requires 2 arguments, but 1 was provided
npm ERR!   V8_WARN_UNUSED_RESULT MaybeLocal<Value> Get(Local<Context> context,
npm ERR!                                           ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2657:
npm ERR! ../node_modules/nan/nan_object_wrap.h:24:25: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
npm ERR!     assert(persistent().IsNearDeath());
npm ERR!            ~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm ERR!     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm ERR!                         ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2657:
npm ERR! ../node_modules/nan/nan_object_wrap.h:67:18: error: no member named 'MarkIndependent' in 'Nan::Persistent<v8::Object>'
npm ERR!     persistent().MarkIndependent();
npm ERR!     ~~~~~~~~~~~~ ^
npm ERR! ../node_modules/nan/nan_object_wrap.h:124:26: error: no member named 'IsNearDeath' in 'Nan::Persistent<v8::Object>'
npm ERR!     assert(wrap->handle_.IsNearDeath());
npm ERR!            ~~~~~~~~~~~~~ ^
npm ERR! /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/assert.h:99:25: note: expanded from macro 'assert'
npm ERR!     (__builtin_expect(!(e), 0) ? __assert_rtn(__func__, __ASSERT_FILE_NAME, __LINE__, #e) : (void)0)
npm ERR!                         ^
npm ERR! In file included from ../src/bcrypt_node.cc:1:
npm ERR! In file included from ../node_modules/nan/nan.h:2753:
npm ERR! ../node_modules/nan/nan_typedarray_contents.h:34:43: warning: 'GetContents' is deprecated: Use GetBackingStore. See http://crbug.com/v8/9908. [-Wdeprecated-declarations]
npm ERR!       data   = static_cast<char*>(buffer->GetContents().Data()) + byte_offset;
npm ERR!                                           ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:5614:3: note: 'GetContents' has been explicitly marked deprecated here
npm ERR!   V8_DEPRECATED("Use GetBackingStore. See http://crbug.com/v8/9908.")
npm ERR!   ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8config.h:454:35: note: expanded from macro 'V8_DEPRECATED'
npm ERR! # define V8_DEPRECATED(message) [[deprecated(message)]]
npm ERR!                                   ^
npm ERR! ../src/bcrypt_node.cc:66:21: error: no matching constructor for initialization of 'String::Utf8Value'
npm ERR!   String::Utf8Value value(str);
npm ERR!                     ^     ~~~
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3588:5: note: candidate constructor not viable: no known conversion from 'Local<v8::String>' to 'const v8::String::Utf8Value' for 1st argument
npm ERR!     Utf8Value(const Utf8Value&) = delete;
npm ERR!     ^
npm ERR! /Users/juan/Library/Caches/node-gyp/16.17.0/include/node/v8.h:3581:5: note: candidate constructor not viable: requires 2 arguments, but 1 was provided
npm ERR!     Utf8Value(Isolate* isolate, Local<v8::Value> obj);
npm ERR!     ^
npm ERR! fatal error: too many errors emitted, stopping now [-ferror-limit=]
npm ERR! 1 warning and 20 errors generated.
npm ERR! make: *** [Release/obj.target/bcrypt_lib/src/bcrypt_node.o] Error 1
npm ERR! gyp ERR! build error
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 21.6.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node" "--module_name=bcrypt_lib" "--module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding" "--napi_version=8" "--node_abi_napi=napi"
npm ERR! gyp ERR! cwd /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! gyp ERR! node -v v16.17.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok
npm ERR! node-pre-gyp ERR! build error
npm ERR! node-pre-gyp ERR! stack Error: Failed to execute '/usr/local/bin/node /usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding/bcrypt_lib.node --module_name=bcrypt_lib --module_path=/Users/juan/Desktop/final/node_modules/bcrypt/lib/binding --napi_version=8 --node_abi_napi=napi' (1)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/Users/juan/Desktop/final/node_modules/bcrypt/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
npm ERR! node-pre-gyp ERR! stack     at ChildProcess.emit (node:events:513:28)
npm ERR! node-pre-gyp ERR! stack     at maybeClose (node:internal/child_process:1093:16)
npm ERR! node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:302:5)
npm ERR! node-pre-gyp ERR! System Darwin 21.6.0
npm ERR! node-pre-gyp ERR! command "/usr/local/bin/node" "/Users/juan/Desktop/final/node_modules/bcrypt/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
npm ERR! node-pre-gyp ERR! cwd /Users/juan/Desktop/final/node_modules/bcrypt
npm ERR! node-pre-gyp ERR! node -v v16.17.0
npm ERR! node-pre-gyp ERR! node-pre-gyp -v v0.9.1
npm ERR! node-pre-gyp ERR! not ok

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/juan/.npm/_logs/2022-12-17T19_57_40_323Z-debug-0.log

I have no clue what is going on here :(
the code was working 2 days ago. now its not working at all


问:
tensorflow model.fit, in call function, batch size dimension = None
I am training a model with tensorflow using model.fit

```<code> model.fit(x=train_loader, y=None,batch_size=batch_size, steps_per_epoch=1,
              epochs=2,shuffle=False,callbacks=checkpointer)
</code>```

but every time after the first epoch, I got an error saying

TypeError: Failed to convert elements of [None, 248, 12, 128] to Tensor. Consider casting elements to a supported type. See https://www.tensorflow.org/api_docs/python/tf/dtypes for supported TF dtypes.

```<code>Call arguments received by layer "csdi_base" (type CSDI_base):
  • batch=('tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248), dtype=int64)')
</code>```

The error saying that, when I use model.fit to feed each batch into the call function, the batch dimension becomes None, how could this happen?

I have checked that the total number of data points can be divided by batch size without any resuduals, so the batch dimension shoule be the same for every step.

My tensorflow version is 2.9.1. And in the first epoch, it does not have this problem, it only starts from the second epoch.

enter image description here

Body:
I am training a model with tensorflow using model.fit

 model.fit(x=train_loader, y=None,batch_size=batch_size, steps_per_epoch=1,
              epochs=2,shuffle=False,callbacks=checkpointer)

but every time after the first epoch, I got an error saying

TypeError: Failed to convert elements of [None, 248, 12, 128] to Tensor. Consider casting elements to a supported type. See https://www.tensorflow.org/api_docs/python/tf/dtypes for supported TF dtypes.

Call arguments received by layer "csdi_base" (type CSDI_base):
  • batch=('tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248, 12), dtype=float32)', 'tf.Tensor(shape=(None, 248), dtype=int64)')

The error saying that, when I use model.fit to feed each batch into the call function, the batch dimension becomes None, how could this happen?

I have checked that the total number of data points can be divided by batch size without any resuduals, so the batch dimension shoule be the same for every step.

My tensorflow version is 2.9.1. And in the first epoch, it does not have this problem, it only starts from the second epoch.

enter image description here


问:
\setmathfont command requires 2 minutes to compile with lualatex
This code takes 10 seconds to compile to a pdf. If I enable in the code the additional lines it takes 2 minutes to compile for the 5 lines. And this happens everytime.

Why does it take so long, and how can I prevent it?

The system is texlive on windows with latest packages:

```<code>This is LuaHBTeX, Version 1.15.0 (TeX Live 2022)  (format=lualatex 2022.12.10)  17 DEC 2022 20:53
 restricted system commands enabled.
LaTeX2e <2022-11-01> patch level 1
Lua module: luaotfload 2022-10-03 3.23 Lua based OpenType font support
</code>```

This is the code

```<code>% !TeX encoding=utf8
% !TeX program = lualatex

\documentclass{article}
\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{tabularray}
\usepackage{xcolor}

\begin{document}
\newcommand{\fontstring}{Sphinx of black quartz, judge my vow.}
\newcommand{\mathstring}{$f(u,v) = \iiint \left[u\nabla^{2}v+\left(\nabla  u,\nabla  v\right)\right]\mathrm{d}^{3}V$}

\colorlet{tablerowcolor}{gray!10}
\colorlet{tablesubheadcolor}{azure3!30}

{ % start a group
    \small\renewcommand{\arraystretch}{1.4}\sffamily
    % the table
    \begin{longtblr}[
        caption = {Font examples},
        label = {tab:doc:Font:Gallery}]
        {
            colspec = {X[1,l]>{\ttfamily}X[2,l]},
            width = 1.0\textwidth,
            row{odd} = {bg=tablerowcolor},
            row{1}   = {bg=azure3, fg=white, font=\sffamily\upshape},
            rowhead = 1,
            rowfoot = 0,
        }
        \hline % Table Header
        Font & Example \\
        \hline %
        %
        \SetCell[c=2]{l,bg=tablesubheadcolor} Latin Modern Family \\
        Latin Modern Roman   & \setmainfont{Latin Modern Roman} \rmfamily \fontstring \\
        Latin Modern Sans    & \setsansfont{Latin Modern Sans}  \sffamily\fontstring \\
        Latin Modern Mono    & \setmonofont{Latin Modern Mono}  \ttfamily \fontstring \\
        %
        \SetCell[c=2]{l,bg=tablesubheadcolor} Math Fonts \\
        %
        Latin Modern Math       & \setmathfont{Latin Modern Math}       \rmfamily \mathstring \\
%       TeX Gyre Termes Math    & \setmathfont{TeX Gyre Termes Math}    \rmfamily \mathstring \\
%       TeX Gyre Pagella Math   & \setmathfont{TeX Gyre Pagella Math}   \rmfamily \mathstring \\
%       Charter - math version  & \setmathfont{XCharter-Math.otf}   \rmfamily \mathstring \\
%       Garamond math version   & \setmathfont{Garamond-Math}       \rmfamily \mathstring \\
%       Cambria Math            & \setmathfont{Cambria Math}        \rmfamily \mathstring \\
        %       %
        \hline
        %
    \end{longtblr}
} % close the group
\end{document}
</code>```

Body:
This code takes 10 seconds to compile to a pdf. If I enable in the code the additional lines it takes 2 minutes to compile for the 5 lines. And this happens everytime.

Why does it take so long, and how can I prevent it?

The system is texlive on windows with latest packages:

This is LuaHBTeX, Version 1.15.0 (TeX Live 2022)  (format=lualatex 2022.12.10)  17 DEC 2022 20:53
 restricted system commands enabled.
LaTeX2e <2022-11-01> patch level 1
Lua module: luaotfload 2022-10-03 3.23 Lua based OpenType font support

This is the code

% !TeX encoding=utf8
% !TeX program = lualatex

\documentclass{article}
\usepackage{fontspec}
\usepackage{amsmath}
\usepackage{unicode-math}
\usepackage{tabularray}
\usepackage{xcolor}

\begin{document}
\newcommand{\fontstring}{Sphinx of black quartz, judge my vow.}
\newcommand{\mathstring}{$f(u,v) = \iiint \left[u\nabla^{2}v+\left(\nabla  u,\nabla  v\right)\right]\mathrm{d}^{3}V$}

\colorlet{tablerowcolor}{gray!10}
\colorlet{tablesubheadcolor}{azure3!30}

{ % start a group
    \small\renewcommand{\arraystretch}{1.4}\sffamily
    % the table
    \begin{longtblr}[
        caption = {Font examples},
        label = {tab:doc:Font:Gallery}]
        {
            colspec = {X[1,l]>{\ttfamily}X[2,l]},
            width = 1.0\textwidth,
            row{odd} = {bg=tablerowcolor},
            row{1}   = {bg=azure3, fg=white, font=\sffamily\upshape},
            rowhead = 1,
            rowfoot = 0,
        }
        \hline % Table Header
        Font & Example \\
        \hline %
        %
        \SetCell[c=2]{l,bg=tablesubheadcolor} Latin Modern Family \\
        Latin Modern Roman   & \setmainfont{Latin Modern Roman} \rmfamily \fontstring \\
        Latin Modern Sans    & \setsansfont{Latin Modern Sans}  \sffamily\fontstring \\
        Latin Modern Mono    & \setmonofont{Latin Modern Mono}  \ttfamily \fontstring \\
        %
        \SetCell[c=2]{l,bg=tablesubheadcolor} Math Fonts \\
        %
        Latin Modern Math       & \setmathfont{Latin Modern Math}       \rmfamily \mathstring \\
%       TeX Gyre Termes Math    & \setmathfont{TeX Gyre Termes Math}    \rmfamily \mathstring \\
%       TeX Gyre Pagella Math   & \setmathfont{TeX Gyre Pagella Math}   \rmfamily \mathstring \\
%       Charter - math version  & \setmathfont{XCharter-Math.otf}   \rmfamily \mathstring \\
%       Garamond math version   & \setmathfont{Garamond-Math}       \rmfamily \mathstring \\
%       Cambria Math            & \setmathfont{Cambria Math}        \rmfamily \mathstring \\
        %       %
        \hline
        %
    \end{longtblr}
} % close the group
\end{document}


问:
In django with apache2 and wsgi, only some print statements to stderr end up in error_log
I am running django 3.2 with apache2 and mod_wsgi on a centos system. When I print to stderr or stdout from the settings.py file, I can see all of those in the default apache error_log. But, when I print to stderr or stdout in the rest of the project, they don't end up in error_log -- I can't find them anywhere.

Here is the code for the print statements in my settings.py file, and these same type of print statements in a views.py file don't show up anywhere:

```<code>print("read dot_env_file: " + str(dot_env_file))
print("DB_IMAGE: %s" % DB_IMAGE)
print(sys.stderr, "MEDIA_ROOT: [" + str(MEDIA_ROOT) + "]")
</code>```

Here are the messages in error_log (I'm showing these since it says "wsgi:error" and so I thought it might be helpful):

```<code>[Fri Dec 16 12:13:48.418738 2022] [wsgi:error] [pid 21770] read dot_env_file: /var/www/exprdb/.env
[Fri Dec 16 12:13:48.474130 2022] [wsgi:error] [pid 21770] DB_IMAGE: None
[Fri Dec 16 12:13:48.474169 2022] [wsgi:error] [pid 21770] <_io.TextIOWrapper name='<stderr>' encoding='utf-8'> MEDIA_ROOT: [/var/www/dj_media/]
</code>```

I don't have any special ErrorLog directives in the apache config. I don't have any LOGGING configuration in django's settings.py.

Do you know how to fix this?

What other details should I provide to you?

Edit:

Perhaps this question is relevant? I'm not sure if I am running mod_wsgi in embedded or daemon mode.
Django StreamHandler log not working in mod_wsgi setup

Edit 2:

I found the output! It is in the /var/log/httpd/ssl_error_log file! Still seems odd for some of the messages to be in /var/log/httpd/error_log and others to be in /var/log/httpd/ssl_error_log, so I'd love to be informed on how that happens.

Body:
I am running django 3.2 with apache2 and mod_wsgi on a centos system. When I print to stderr or stdout from the settings.py file, I can see all of those in the default apache error_log. But, when I print to stderr or stdout in the rest of the project, they don't end up in error_log -- I can't find them anywhere.

Here is the code for the print statements in my settings.py file, and these same type of print statements in a views.py file don't show up anywhere:

print("read dot_env_file: " + str(dot_env_file))
print("DB_IMAGE: %s" % DB_IMAGE)
print(sys.stderr, "MEDIA_ROOT: [" + str(MEDIA_ROOT) + "]")

Here are the messages in error_log (I'm showing these since it says "wsgi:error" and so I thought it might be helpful):

[Fri Dec 16 12:13:48.418738 2022] [wsgi:error] [pid 21770] read dot_env_file: /var/www/exprdb/.env
[Fri Dec 16 12:13:48.474130 2022] [wsgi:error] [pid 21770] DB_IMAGE: None
[Fri Dec 16 12:13:48.474169 2022] [wsgi:error] [pid 21770] <_io.TextIOWrapper name='<stderr>' encoding='utf-8'> MEDIA_ROOT: [/var/www/dj_media/]

I don't have any special ErrorLog directives in the apache config. I don't have any LOGGING configuration in django's settings.py.

Do you know how to fix this?

What other details should I provide to you?

Edit:

Perhaps this question is relevant? I'm not sure if I am running mod_wsgi in embedded or daemon mode.
Django StreamHandler log not working in mod_wsgi setup

Edit 2:

I found the output! It is in the /var/log/httpd/ssl_error_log file! Still seems odd for some of the messages to be in /var/log/httpd/error_log and others to be in /var/log/httpd/ssl_error_log, so I'd love to be informed on how that happens.