# webpack-demo **Repository Path**: wcxin/webpack-demo ## Basic Information - **Project Name**: webpack-demo - **Description**: No description available - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-08-27 - **Last Updated**: 2024-11-13 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 安装[nvm-windows](https://github.com/coreybutler/nvm-windows/releases) ``` // nvm代理 nvm node_mirror https://npmmirror.com/mirrors/node/ ``` # 安装[node.js](https://nodejs.org/dist/) ``` // 如果已安装cnpm则先卸载然后安装新的淘宝镜像 // 卸载cnpm npm uninstall cnpm -g // 安装cnpm npm install -g cnpm --registry=https://registry.npmmirror.com // 检查cnpm的版本 cnpm -v ``` # 安装 nrm ``` // 安装 npm install nrm -g // 添加私有代理 nrm add xxx http://xxx.xxx.com:4873/ // 查看 nrm ls // 管理npm源 nrm use xxx ``` # npm私服搭建 ``` // 安装 npm install verdaccio -g // 启动 verdaccio // 登录 npm adduser --registry http://localhost:4873 // 发布 npm publish --registry http://localhost:4873 // 取消发布 npm unpublish package-name --registry http://localhost:4873 ```