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

tp5buhyn  于 5个月前  发布在  其他
关注(0)|答案(6)|浏览(61)

Element UI version

2.13.1

OS/Browsers version

windows10

Vue version

3.0.0-alpha.13

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

epggiuax

epggiuax1#

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

cidc1ykv

cidc1ykv2#

可以试试cnpm i element-themex -g

kokeuurv

kokeuurv3#

可以试试cnpm i element-themex -g

好使好使

yptwkmov

yptwkmov4#

可以试试cnpm i element-themex -g

好用

lnlaulya

lnlaulya5#

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

8xiog9wr

8xiog9wr6#

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.

相关问题