vue-element-admin官网下载运行问题

470 阅读1分钟

从官网 https://github.com/PanJiaChen/vue-element-admin 下载的版本带有 tui-editor

一、放弃tui-editor版本1.3.3

现象

tui-editor版本1.3.3 ,在编译时会遇到如下问题:

error An unexpected error occurred: "https://github.com/sohee-lee7/Squire.git/info/refs?service=git-upload-pack: connect ETIMEDOUT 20.205.243.166:443".
info If you think this is a bug, please open a bug report with the information provided in "F:\\ep-clouds-II\\J2PaaS_client\\J2PaaS-TFC-pc_local\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
Error: Command failed.
Exit code: 128
Command: git
Arguments: ls-remote --tags --heads https://github.com/nhn/raphael.git
Directory: F:\ep-clouds-II\J2PaaS_client\J2PaaS-TFC-pc_local
Output:
fatal: unable to access 'https://github.com/nhn/raphael.git/': OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to github.com:443
    at ProcessTermError.ExtendableBuiltin (D:\soft\nodejs\node_global\node_modules\yarn\lib\cli.js:721:66)
    at ProcessTermError.MessageError (D:\soft\nodejs\node_global\node_modules\yarn\lib\cli.js:750:123)
    at new ProcessTermError (D:\soft\nodejs\node_global\node_modules\yarn\lib\cli.js:790:113)
    at ChildProcess.<anonymous> (D:\soft\nodejs\node_global\node_modules\yarn\lib\cli.js:25783:17)
    at ChildProcess.emit (events.js:315:20)
    at maybeClose (internal/child_process.js:1048:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)

解决方法

去除package.json 的  tui-editor 配置项

运行 npm install / yarn

在手动安装 tui-editor 

npm install --save tui-editoryarn add tui-editor

二、放弃core-js "3.6.5"

现象:

These dependencies were not found:

* core-js/modules/es.error.cause.js in ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js, ./src/component
s/Tinymce/dynamicLoadScript.js and 6 others
* core-js/modules/es.regexp.dot-all.js in ./node_modules/cache-loader/dist/cjs.js??ref--12-0!./node_modules/babel-loade
r/lib!./node_modules/cache-loader/dist/cjs.js??ref--0-0!./node_modules/vue-loader/lib??vue-loader-options!./src/compone
nts/ThemePicker/index.vue?vue&type=script&lang=js&, ./src/utils/index.js
* core-js/modules/es.typed-array.at.js in ./src/components/ImageCropper/utils/data2blob.js, ./src/vendor/Export2Excel.j
s* core-js/modules/esnext.typed-array.find-last-index.js in ./src/components/ImageCropper/utils/data2blob.js, ./src/ven
dor/Export2Excel.js
* core-js/modules/esnext.typed-array.find-last.js in ./src/components/ImageCropper/utils/data2blob.js, ./src/vendor/Exp
ort2Excel.js
* core-js/modules/web.atob.js in ./src/components/ImageCropper/utils/data2blob.js
* core-js/modules/web.dom-exception.constructor.js in ./src/components/ImageCropper/utils/data2blob.js
* core-js/modules/web.dom-exception.stack.js in ./src/components/ImageCropper/utils/data2blob.js
* core-js/modules/web.dom-exception.to-string-tag.js in ./src/components/ImageCropper/utils/data2blob.js

To install them, you can run: npm install --save core-js/modules/es.error.cause.js core-js/modules/es.regexp.dot-all.js
 core-js/modules/es.typed-array.at.js core-js/modules/esnext.typed-array.find-last-index.js core-js/modules/esnext.type
d-array.find-last.js core-js/modules/web.atob.js core-js/modules/web.dom-exception.constructor.js core-js/modules/web.d
om-exception.stack.js core-js/modules/web.dom-exception.to-string-tag.js

解决方法

更新core-js版本

"core-js": "^3.23.5"