Nuxt initialization error Cannot read property name of undefined

The initialization console will report an error Cannot read property name of undefined, but it can run. I found that no matter which file I modify, nuxt will display the default nuxt welcome page. The case of the official website is still 404. Later, I installed yarn and installed nuxt with yarn. Nuxt....

The reason is that the node version is too low and should be at least higher than version 14.20.0. Use nvm to switch the node version. The best version is 18 or above.

It works fine after switching

 

Guess you like

Origin blog.csdn.net/wanjun_007/article/details/129637021