本地是vue环境,所以拿vue项目练习。
1、创建一个父项目,两个子项目
vue create parent
vue create children-one
vue create children-two
2、打开主项目,引入qiankun
cd parent
npm i qiankun -S
这里我遇到了问题,
PS C:\Users\admin\Desktop\qiankun\parent> npm i qiankun -S
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ECONNRESET: request to https://registry.npmjs.org/qiankun failed, reason: read ECONNRESET
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2024-12-10T01_16_50_824Z-debug.log
PS C:\Users\admin\Desktop\qiankun\parent> npm i qiankun -S
npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning ETIMEDOUT: request to https://registry.npmjs.org/@parcel%2Fwatcher-darwin-arm64 failed, reason: connect ETIMEDOUT 104.16.3.35:443
npm WARN registry Using stale data from https://registry.npmjs.org/ due to a request error during revalidation.
npm ERR! cb() never called!
npm ERR! This is an error with npm itself. Please report this error at:
npm ERR! https://npm.community
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\admin\AppData\Roaming\npm-cache_logs\2024-12-10T01_43_00_190Z-debug.log****
度娘说是node版本问题,查看本地node版本 node -v,是v14.17.6