Run a new vue project to step on the pit

  • Npm install reported an error, mainly because the node version is too high.
  • Go to the official website of node, download the file with the msi suffix of the lower version, and run the installation.
  • In vs code, npm downloads dependencies and runs them.

1. Unable to cnpm

cnpm : Could not load file D:\Program Files\nodejs\node_global\cnpm.ps1 because running scripts is prohibited on this system. _Zero-To-One's Blog-CSDN Blog

2.  Error: Command failed with exit code 1: node scripts/build.js

https://huaweicloud.csdn.net/638edf93dacf622b8df8d1f6.html?spm=1001.2101.3001.6650.7&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-7-123345413-blog-129838749.235%5Ev38%5Epc_relevant_sort_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7EBlogCommendFromBaidu%7Eactivity-7-123345413-blog-129838749.235%5Ev38%5Epc_relevant_sort_base2&utm_relevant_index=6https://huaweicloud.csdn.net/638edf93dacf622b8df8d1f6.html?spm=1001.2101.3001.6650.7&utm_medium=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-7-12334 5413-blog-129838749.235%5Ev38% 5Epc_relevant_sort_base2&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2~default~BlogCommendFromBaidu~activity-7-123345413-blog-129838749.235%5Ev38%5Epc_relevant_sort_base2&ut m_relevant_index=6 Use npm to download files and prompt that some files do not exist on the node (WARN node unsupported)

3. WARN node unsupported "[email protected]" is incompatible with @vue/[email protected] › @vue/[email protected] › @achrinza/[email protected], expected node@8 || 10 || 12 || 14 || 1/ [20/28] Installing has-tostringtag@^1.0.0

Node does not support, install the old version of node, for management

1. Remove the premium version

2. Old version download link:

Previous Releases | Node.js

3. Old version installation

4. Go to vs code

npm install (no matter how many there are since there is no fund) packages are looking for funding_qgbihc's blog-CSDN blog

A dependency is installed, you don't need to install it: npm i [email protected] -S

npm run serve

Guess you like

Origin blog.csdn.net/smiledawen/article/details/131101030