Vue3+vite project error await import('source-map-support').then((r) => r.default.install()) ^^^^^Synta

  await import('source-map-support').then((r) => r.default.install())
    ^^^^^

SyntaxError: Unexpected reserved word

 Check out the node version

 The reason for the error is a problem with the node version. To use a version above 16

My computer has nvm installed to view the current node version. If you will not install nvm, refer to this mac download nvm_nvm mac download_Xiamen Thinking Blog-CSDN Blog

How to ensure that a project uses a lower version of node. Are there other projects using other higher versions of node? This needs nvm

Execute nvm list to view the node version installed on the computer. Then nvm use v16.17.0

 

Guess you like

Origin blog.csdn.net/qq_33769914/article/details/130337560