angular工程,想将semantic ui依赖进去,使用npm install semantic-ui --save 报错

发布于 2022-09-07 08:50:53 字数 2053 浏览 11 评论 0

想将semantic ui安装到angular工程中,报下面的错,该怎么解决? 这里的less version 3.0.4 is not currently supported 是什么的版本?
E:Angularangular-reddit>npm install semantic-ui --save
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gul...

semantic-ui@2.3.1 install E:Angularangular-redditnode_modulessemantic-ui
gulp install

E:Angularangular-redditnode_modulesaccordlibindex.js:29

  throw new Error(name + " version " + version + " is not currently supported");
  ^

Error: less version 3.0.4 is not currently supported

at Object.exports.load (E:\Angular\angular-reddit\node_modules\accord\lib\index.js:29:13)
at Object.<anonymous> (E:\Angular\angular-reddit\node_modules\gulp-less\index.js:9:29)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (E:\Angular\angular-reddit\node_modules\semantic-ui\tasks\watch.js:17:18)

npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.3 (node_modulesfsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"win32","arch":"x64"})

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! semantic-ui@2.3.1 install: gulp install
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the semantic-ui@2.3.1 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! C:UsersAdministratorAppDataRoamingnpm-cache_logs2018-05-12T07_06_10_456Z-debug.log

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

咆哮 2022-09-14 08:50:53
npm install less@2.7.3

你当前 gulp-less 版本用不了 less@3.0.4 ,需要降级

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文