From d6a3a3899154b1e47667d3381a6dd26a7f27aa5f Mon Sep 17 00:00:00 2001 From: yaojn Date: Thu, 18 Jan 2024 16:11:29 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E4=BF=AE=E6=94=B9REME.?= =?UTF-8?q?md=E6=96=87=E4=BB=B6node=E7=9A=84=E7=89=88=E6=9C=AC=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.en.md | 2 +- README.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/README.en.md b/README.en.md index 598af140..d4c1c3ea 100755 --- a/README.en.md +++ b/README.en.md @@ -24,7 +24,7 @@ npm install npm run serve ``` Exception: -If a large number of unknown errors are found at startup, the possible reason may be that the dependency packages loaded during the `npm install` phase are incomplete. It is suggested to downgrade npm and install again. Currently, tests indicate that npm v14 can install normally, while npm v18+ might cause exceptions. Alternatively, loading dependency packages through `cnpm install` could also work. The cnpm version should not be too high, it's recommended to use v8.2.0. +If a large number of unknown errors are found at startup, the possible reason may be that the dependency packages loaded during the `npm install` phase are incomplete. It is suggested to downgrade npm and install again. Currently, tests indicate that npm v18 can install normally. Alternatively, loading dependency packages through `cnpm install` could also work. The cnpm version should not be too high, it's recommended to use v8.2.0. ``` sudo npm install -g cnpm@8.2.0 --registry=https://registry.npm.taobao.org ``` diff --git a/README.md b/README.md index 657cc5ad..151badec 100755 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ npm install --registry=https://registry.npm.taobao.org npm run serve ``` 异常: -如果启动时发现大量不明报错,可能原因是npm install阶段加载的依赖包不完整导致,可以对npm进行降级再次install,目前测试v14的npm可以正常install,v18+的npm有可能出现异常。或者通过cnpm install加载依赖包也可以。cnpm版本也不能太高,建议使用v8.2.0。建议使用nvm管理多版本的node,使用v16.x版本的node会比较稳定。 +如果启动时发现大量不明报错,可能原因是npm install阶段加载的依赖包不完整导致,可以对npm进行降级再次install,目前测试v18的npm可以正常install。或者通过cnpm install加载依赖包也可以。cnpm版本也不能太高,建议使用v8.2.0。建议使用nvm管理多版本的node,使用v18.x版本的node会比较稳定。 ``` sudo npm install -g cnpm@8.2.0 --registry=https://registry.npm.taobao.org ``` -- Gitee