npm 版本問題
npm v9.6.3 is known not to run on Node.js v19.9.0. This version of npm supports the following node versions: ^14.17.0 || ^16.13.0 || >=18.0.0
. You can find the latest version at https://nodejs.org/.
需要更新npm版本
npm install -g npm@10.2.3 to update
在idea終端輸入命令報錯:
無法加載文件 F:\nvm\nodejs\tyarn.ps1,因為在此系統(tǒng)上禁止運行腳本。有關(guān)詳細(xì)信息,請參閱 https:/go.microsoft.com/fwlink/?LinkID=135170 中的
about_Execution_Policies。
解決辦法:
當(dāng)你在運行 PowerShell 腳本時遇到 “禁止運行腳本” 的錯誤信息時,這是由于 PowerShell 執(zhí)行策略(Execution Policies)所限制造成的。
執(zhí)行策略用于控制 PowerShell 腳本的運行。默認(rèn)情況下,Windows 把執(zhí)行策略設(shè)置為 Restricted(限制模式),它禁止運行任何外部腳本。
如果你想要運行腳本,可以按照以下步驟更改 PowerShell 的執(zhí)行策略:
-
以管理員權(quán)限運行 PowerShell。在開始菜單中找到 PowerShell,右鍵點擊并選擇 “以管理員身份運行”。
-
運行以下命令,檢查當(dāng)前的執(zhí)行策略:
Get-ExecutionPolicy
此命令會返回你當(dāng)前的執(zhí)行策略。如果顯示的是 “Restricted”,則表示當(dāng)前策略限制了腳本的運行。
-
運行以下命令,將執(zhí)行策略更改為 “RemoteSigned”(遠(yuǎn)程簽名模式):
Set-ExecutionPolicy RemoteSigned
這將允許運行本地腳本,但需要確保外部腳本具有數(shù)字簽名。
-
在確認(rèn)提示中輸入 “Y” 以確認(rèn)更改執(zhí)行策略。文章來源:http://www.zghlxwxcb.cn/news/detail-744238.html
error:0308010C:digital envelope routines::unsupported
node版本問題,使用nvm將node版本設(shè)置為16即可文章來源地址http://www.zghlxwxcb.cn/news/detail-744238.html
到了這里,關(guān)于下載使用 ant design Pro 中遇到的一些問題的文章就介紹完了。如果您還想了解更多內(nèi)容,請在右上角搜索TOY模板網(wǎng)以前的文章或繼續(xù)瀏覽下面的相關(guān)文章,希望大家以后多多支持TOY模板網(wǎng)!