ElemeFE / element

A Vue.js 2.0 UI Toolkit for Web
https://element.eleme.io/
MIT License
54.1k stars 14.64k forks source link

[Bug Report] 使用命令行主题工具自定主题出错 #19193

Open 941477276 opened 4 years ago

941477276 commented 4 years ago

Element UI version

2.13.1

OS/Browsers version

windows10

Vue version

3.0.0-alpha.13

Reproduction Link

QQ截图20200416163054

Steps to reproduce

1、全局安装 npm i element-theme -g 2、项目安装npm i element-theme-chalk -D,版本号2.13.1 node版本号 v12.13.1 3、执行 et -1命令 4、结果: 报错 fs.js:27 const { Math, Object } = primordials; ^ ReferenceError: primordials is not defined

What is Expected?

正常生成 element-variables.scss文件

What is actually happening?

报错 fs.js:27 const { Math, Object } = primordials; ^ ReferenceError: primordials is not defined

zzlit commented 4 years ago

我刚才也碰到了这个问题,原因好像是node版本高了,解决办法是调回v10.13.0 ,如果还报错可以尝试删除 node_modules 重新 npm install

jaderowe commented 4 years ago

可以试试cnpm i element-themex -g

xuergo commented 4 years ago

可以试试cnpm i element-themex -g

好使好使

sarahMmh commented 4 years ago

可以试试cnpm i element-themex -g

好用

S201761481 commented 3 years ago

cnpm i element-themex -g node哪个版本? 能否把解决方法说的具体点?

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.