我正在尝试为 Sublime Text 2 安装 Autoprefixer,但出现以下错误:
Autoprefixer Error: /Users/labedzde/Library/Application Support/Sublime Text 2/Packages/Autoprefixer/node_modules/get-stdin/index.js:7 return new Promise(function (resolve) {
^ ReferenceError: Promise is not defined
at module.exports (/Users/labedzde/Library/Application Support/Sublime Text 2/Packages/Autoprefixer/node_modules/get-stdin/index.js:7:13)
at Object. (/Users/labedzde/Library/Application Support/Sublime Text 2/Packages/Autoprefixer/autoprefixer.js:7:1)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
我已经安装了 node.js,它的版本是 0.10.32。
错误是什么意思,我该如何安装 Autoprefixer?
最佳答案
您需要升级您的 nodejs 版本,请参阅 GH page 中的此注释: 您需要安装 Node.js >=0.12.0。
关于css - Sublime Text 2 上的自动前缀错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34820889/