vue-element-admin
vue-element-admin copied to clipboard
npm install失败
Bug report(问题描述)
npm install失败
Steps to reproduce(问题复现步骤)
1,根据提示直接克隆,然后安装出现问题
2,安装过程是有node_modules文件夹的,安装结束就没这个文件夹
3,node和npm的版本,试过了node16是可以的
Screenshot or Gif(截图或动态图)
Link to minimal reproduction(最小可在线还原demo)
Other relevant information(格外信息)
- Your OS:
- Node.js version:
- vue-element-admin version:
git配置要改一下: git config --global url."https://".insteadOf git:// 然后重新运行 npm install就行或者npm install --registry=https://registry.npm.taobao.org使用淘宝镜像
https://www.panziye.com/java/web/4794.html
https://www.panziye.com/java/web/4794.html
可以
1.克隆以后 删除package.json中tui-editor:1.3.3
2.\src\components\MarkdownEditor\index.vue文件,将全部import换成下面几个 import 'codemirror/lib/codemirror.css' import '@toast-ui/editor/dist/toastui-editor.css' import Editor from '@toast-ui/vue-editor' import defaultOptions from './default-options' 并将该文件下的getValue和setValue分别换成getMarkdown和setMarkdown
3.单独安装tui-editor npm install --save @toast-ui/vue-editor
4.安装其他依赖 npm i
5.跑起来 npm run dev
npm install 一直停着没反应