nodejs打包项目

1.安装node

https://nodejs.org/dist/v18.20.4/node-v18.20.4-x64.msi

2.安装vscode

https://vscode.download.prss.microsoft.com/dbazure/download/stable/f1e16e1e6214d7c44d078b1f0607b2388f29d729/VSCodeUserSetup-x64-1.91.1.exe

3.项目目录里空白地方右击 通过Code打开

4.Terminal New Terminal

5.删除node_modules、package-lock.json

6.npm cache clean –force

7.npm install –registry=https://registry.npmmirror.com –legacy-peer-deps

8.npm run build

Categories: 系统运维