1. 在Nuxus裏面創建倉儲
3. 加權限
4. 本地執行命令
1. 刪除node_modules以及package-lock.json
2. npm clean-install cache -froce ,這裏是要清理Node的緩存文件,D:\nodejs\node_cache
3. npm config get registry
4. npm config set registry http://192.168.1.50:8081/repository/w3/
5. npm login –registry=http://192.168.1.50:8081/repository/w3/
6. npm who am i 查看當前登錄用戶
7. npm install,先會下載到nuxus裏面,再下載到本地的node_modules文件
清理所有npm的緩慢
5. 如果是單獨封裝的npm組件,也需要上傳到nuxus裏面
這裏只測試過 nuxus 的 npm類型的type是 hosted是可以直接用 npm publish上傳
但是在npm proxy不行