vue-element-admin 切换到 i18n 时候提示 Can't resolve 'pinyin'

ghhkc1vu  于 4个月前  发布在  其他
关注(0)|答案(1)|浏览(39)

Question(提问)

切换到i18n分支,npm run dev 的时候提示 Can't resolve 'pinyin'

问题复现步骤
  1. 切换到 i18n 分支
  2. npm run dev
  3. 提示
Failed to compile.

./src/components/HeaderSearch/index.vue?vue&type=script&lang=js& (./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loader/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/components/HeaderSearch/index.vue?vue&type=script&lang=js&)

Module not found: Error: Can't resolve 'pinyin' in 'admin_demo\src\components\HeaderSearch'
mutmk8jj

mutmk8jj1#

$ npm -v
8.5.5

$ node
Welcome to Node.js v16.15.0.

Platform: Windows 11

相关问题