简体   繁体   中英

after i installed npm on my visual studio terminal to create react js app, when i node start the server its display error: module not found

错误:在 Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules) 中找不到模块“C:\\react-not-working\\start” /cjs/loader:778:27) at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:81:12) at node:internal/main/run_main_module:17:47 { code: 'MODULE_NOT_FOUND',

You have to use npm start

npx create-react-app (whatever you want)

npm start

Because it thinks you are going to run start.js

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM