首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >npm未能编译- uikit3

npm未能编译- uikit3
EN

Stack Overflow用户
提问于 2017-03-21 13:29:54
回答 1查看 242关注 0票数 0

我刚刚开始使用UIKit3 (getuitkit.com),当npm运行监视运行时,我一直会收到这个错误--我也不能使用npm运行编译。有什么想法吗?这就是我在手表上遇到的错误..。

代码语言:javascript
复制
[compile-less] /Users/Michael/Sites/uikit-3/build/icons.js:10
glob(custom, (err, folders) =>
                            ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3
[compile-less] [nodemon] app crashed - waiting for file changes before starting...

这是为了编译..。

代码语言:javascript
复制
/Users/Michael/Sites/uikit-3/build/icons.js:10
glob(custom, (err, folders) =>
                            ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:501:10)
    at startup (node.js:129:16)
    at node.js:814:3

npm ERR! Darwin 16.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "icons"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! uikit@3.0.0-beta.18 icons: `node build/icons`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uikit@3.0.0-beta.18 icons script 'node build/icons'.
npm ERR! This is most likely a problem with the uikit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node build/icons
npm ERR! You can get their info via:
npm ERR!     npm owner ls uikit
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Michael/Sites/uikit-3/npm-debug.log

npm ERR! Darwin 16.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "compile-less"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! uikit@3.0.0-beta.18 compile-less: `npm run icons && node build/less`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uikit@3.0.0-beta.18 compile-less script 'npm run icons && node build/less'.
npm ERR! This is most likely a problem with the uikit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run icons && node build/less
npm ERR! You can get their info via:
npm ERR!     npm owner ls uikit
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Michael/Sites/uikit-3/npm-debug.log

npm ERR! Darwin 16.1.0
npm ERR! argv "node" "/usr/local/bin/npm" "run" "compile"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ELIFECYCLE
npm ERR! uikit@3.0.0-beta.18 compile: `npm run compile-less && npm run compile-js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the uikit@3.0.0-beta.18 compile script 'npm run compile-less && npm run compile-js'.
npm ERR! This is most likely a problem with the uikit package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     npm run compile-less && npm run compile-js
npm ERR! You can get their info via:
npm ERR!     npm owner ls uikit
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Michael/Sites/uikit-3/npm-debug.log
EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2017-03-31 07:52:21

您似乎正在运行节点v0.12.0。UIkit的构建工具需要一个最低版本的4.4+。请更新到当前节点版本。https://nodejs.org/en/

票数 0
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/42928605

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档