Novice solving, Error: Cannot find module 'array-includes'?

pakeage.json
clipboard.png

clipboard.png

Mar.07,2021

delete node_modules, re-cnpm install


"webpack": "^ 4.0.1" change to "webpack": "^ 3.0.0" ,
there is definitely no webpack4 in online tutorials for beginners.
(webpack4 needs webpack-cli to start)


I am currently testing this problem because the name of the outermost file directory of the project has changed
for example:

test node_modules,
 testOne npm run dev

my question is how to recover and solve

testOnetest
    

npm i array-includes --save

this module should be missing. You can install it and then run it.


how did you solve the problem? I also encountered the same problem, how to install array-includes this module all reported an error.


just reinstall node. Simple violence.


I also encountered this problem
problem recovery:
directly copy the entire project (at this time the project is starting) to another path
solve:

  1. close the current project
  2. do not copy .vscode .ieda node_modules
  3. re-npm install

I have encountered this problem, and now I have solved the following sentence in
:
npm err! C:UsersaAppDataRoamingnpm-cache_logs2018-08-23T10_37_53_462Z-debug.log
also found this folder and deleted all the log files in it.

Menu