首页 > 其他分享 >pnpm install后弹错

pnpm install后弹错

时间:2023-05-24 21:24:52浏览次数:36  
标签:node vue 06 install modules 后弹 pinia pnpm 21

Uncaught SyntaxError: The requested module '/node_modules/.pnpm/[email protected][email protected]/node_modules/vue-demi/lib/index.mjs?v=b7df6023' does not provide an export named 'hasInjectionContext'
21:06:20.970 "hasInjectionContext" is not exported by "node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/vue-demi/lib/index.mjs", imported by "node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/pinia/dist/pinia.mjs".
21:06:20.970 at ../node_modules/.pnpm/[email protected][email protected][email protected]/node_modules/pinia/dist/pinia.mjs:6:9
21:06:20.975   4:   * @license MIT
21:06:20.975   5:   */
21:06:20.978   6: import { hasInjectionContext, inject, toRaw, watch, unref, markRaw, effectScope, ref, isVue2, isRef, isReactive, set,...
21:06:20.981               ^
21:06:20.984   7: import { setupDevtoolsPlugin } from '@vue/devtools-api';

版本太高了,回退版本
pnpm i [email protected]

标签:node,vue,06,install,modules,后弹,pinia,pnpm,21
From: https://www.cnblogs.com/linhan8888/p/17429542.html

相关文章

  • Uncaught TypeError: Cannot read properties of undefined (reading ‘install‘)
     出现该情况的原因是vue-router安装的版本太高,一般vue2的项目对应的版本是vue-router@3版本①在控制台输入: [email protected] 重新安装vue-router即可解决......
  • Zora P1 install ROS
    ZoraP1installROS1.install2.issues1.installref:http://wiki.ros.org/melodic/Installation/Ubuntu2.issuesrosdepinit或者rosdepupdate连接错误的解决办法......
  • 【iOS开发】This application's application-identifier entitlement does not match
    Xcode编译报错:Thisapplication’sapplication-identifierentitlementdoesnotmatchthatoftheinstalledapplication.Thesevaluesmustmatchforanupgradetobeallowed.原因:两次编译的用的证书不一致。解决:把之前装的app卸载,重新安装下。......
  • 【python】使用pyinstaller打包python程序为exe【转】
    pyinstaller介绍PyInstaller除了win32平台外还支持Linux,Unix平台.py2exe的用法在前面的博文里已经有了,现在看看PyInstaller,pyinstaller是目前应用最多的python打包工具,也是我最常用的。PyInstaller本身并不是Python模块,所以安装时随便放在哪儿都行。优点:可将python文件转......
  • go install
    在命令行中,可以使用"goinstall"命令编译并安装一个Go程序。这个命令将会编译指定的Go程序文件,并将生成的可执行文件安装到$GOPATH/bin目录下。例如,如果你想安装main.go文件中的程序,可以在命令行中输入:goinstallmain.go这个命令会编译main.go文件中的代码,并将生成的可执行......
  • pip3 install 超时
    方法有两种加长超时时间pip3install--default-timeout=100pytorch下载离线安装(推荐,毕竟网速不好)安装的时候使用国内源,会自动显示下载地址。然后使用迅雷下载,-ihttps://pypi.tuna.tsinghua.edu.cn/simple安装方式:pip3install./torch-1.13.1-cp37-cp37m-manylinux1_x86_64.whl......
  • nerd font linux install
    sudoapt-getinstallttf-mscorefonts-installersudoapt-getinstallfontconfigwget-chttps://github.com/ryanoasis/nerd-fonts/releases/download/v3.0.1/SourceCodePro.zipsudounzipSourceCodePro-d/usr/share/fonts/SourceCodeProcd/usr/share/fonts/SourceCod......
  • linux ranger install
    https://www.bilibili.com/video/BV1ER4y1F72Ahttps://mp.weixin.qq.com/s/y1ISUqoya1rJGTpDd5OwMw项目地址https://github.com/ranger/ranger>sudoapt-getinstallranger>ranger --copy-config=allgit clone https://github.com/alexanderjeurissen/ranger_devicons......
  • Install PVE on Intel N100, enable Intel UHD integrated GPU passthrough and suppo
    IgotanIntelN100machinefromChangwang. Ithas4x2.5Gbpsi226-Vethernetcards.Iinstalleda32GBDDR5-5600MhzRAMonit.CPUN100supportsupto16GBRAMaccordingtoIntel'ssitebutthe32GBramworksfinethoughitworksat4800Mhz.Iinsta......
  • python:ERROR: Could not build wheels for wordcloud, which is required to install
    pycharm里无法下载,在下面下载出现问题 需要下载error里的文件https://www.lfd.uci.edu/~gohlke/pythonlibs/#wordcloud这个网站找。输入Python,看自己电脑是怎样的 下载文件后,放到对应位置,下载成功 ......