首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >无法安装Angular CLI的语义UI组件: 8.3.18?

无法安装Angular CLI的语义UI组件: 8.3.18?
EN

Stack Overflow用户
提问于 2019-11-10 12:49:49
回答 1查看 1.1K关注 0票数 0

我正在为我的当前项目使用Angular CLI: 8.3.18。因此,在我创建了一个新的项目sudo ng new angular-reddit之后,我尝试安装语义UI组件,因为我需要使用它来设置样式。

因此,我发出了这个命令,但以下面的错误结束

npm i -g semantic-ui --save

输出结果是

代码语言:javascript
复制
npm WARN deprecated gulp-util@3.0.8: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated minimatch@0.2.14: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm WARN deprecated graceful-fs@1.2.3: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
npm WARN deprecated natives@1.1.6: This module relies on Node.js's internals and will break at some point. Do not use it, and update to graceful-fs@4.x.
npm WARN deprecated fsevents@1.2.9: One of your dependencies needs to upgrade to fsevents v2: 1) Proper nodejs v10+ support 2) No more fetching binaries from AWS, smaller package size
npm WARN checkPermissions Missing write access to /usr/local/lib/node_modules
npm WARN semantic-ui@2.4.2 requires a peer of better-console@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of del@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of extend@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-autoprefixer@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-chmod@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-clean-css@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-clone@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-concat@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-concat-css@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-copy@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-dedupe@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-flatten@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-header@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-help@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-if@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-less@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-notify@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-plumber@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-print@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-rename@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-replace@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-rtlcss@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-uglify@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of gulp-watch@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of map-stream@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of replace-ext@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of require-dot-file@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of run-sequence@* but none is installed. You must install peer dependencies yourself.
npm WARN semantic-ui@2.4.2 requires a peer of yamljs@* but none is installed. You must install peer dependencies yourself.

npm ERR! code EACCES
npm ERR! syscall access
npm ERR! path /usr/local/lib/node_modules
npm ERR! errno -13
npm ERR! Error: EACCES: permission denied, access '/usr/local/lib/node_modules'
npm ERR!  [Error: EACCES: permission denied, access '/usr/local/lib/node_modules'] {
npm ERR!   stack: "Error: EACCES: permission denied, access '/usr/local/lib/node_modules'",
npm ERR!   errno: -13,
npm ERR!   code: 'EACCES',
npm ERR!   syscall: 'access',
npm ERR!   path: '/usr/local/lib/node_modules'
npm ERR! }
npm ERR! 
npm ERR! The operation was rejected by your operating system.
npm ERR! It is likely you do not have the permissions to access this file as the current user
npm ERR! 
npm ERR! If you believe this might be a permissions issue, please double-check the
npm ERR! permissions of the file and its containing directories, or try running
npm ERR! the command again as root/Administrator.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/narun/.npm/_logs/2019-11-10T04_12_55_741Z-debug.log

我遵循了控制台中提供的Url,但它仍然不能帮助解决我的问题。谢谢

EN

回答 1

Stack Overflow用户

发布于 2019-11-15 23:11:03

首先删除小于10的节点,然后重启PC

安装节点12.13.0之后

使用以下命令升级您的angular cli

npm install -g @angular/cli@latest

一切完成后,重启你的电脑,然后它就可以工作了

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

https://stackoverflow.com/questions/58785814

复制
相关文章

相似问题

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