After struggling for a day, I finally figured it out. I encountered the problem of memory overflow more than ten times, but I don’t know how to solve it. I haven’t encountered it later, sorry. ps: When I encountered webpack command not find later, I tried many times according to the online instructions, including environment variables, global installation, etc., but it didn't work. Later I discovered that there is a batch file webpack.cmd in C:Program Filesnodejsnode_global. After clicking once, you can use the webpack command.
After struggling for a day, I finally figured it out. I encountered the problem of memory overflow more than ten times, but I don’t know how to solve it. I haven’t encountered it later, sorry.
ps: When I encountered webpack command not find later, I tried many times according to the online instructions, including environment variables, global installation, etc., but it didn't work. Later I discovered that there is a batch file webpack.cmd in C:Program Filesnodejsnode_global. After clicking once, you can use the webpack command.
Maybe your computer has insufficient memory