Element UI version
2.13.1
OS/Browsers version
windows10
Vue version
3.0.0-alpha.13
Reproduction Link
Steps to reproduce
1、全局安装 npm i element-theme -g
2、项目安装 npm i element-theme-chalk -D
,版本号2.13.1node
版本号 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
6条答案
按热度按时间epggiuax1#
我刚才也碰到了这个问题,原因好像是
node
版本高了,解决办法是调回v10.13.0
,如果还报错可以尝试删除node_modules
重新npm install
cidc1ykv2#
可以试试cnpm i element-themex -g
kokeuurv3#
可以试试cnpm i element-themex -g
好使好使
yptwkmov4#
可以试试cnpm i element-themex -g
好用
lnlaulya5#
cnpm i element-themex -g
node哪个版本?
能否把解决方法说的具体点?
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.