【问题标题】:"WARN peerdependencies" while installing Semantic-UI安装 Semantic-UI 时的“WARN peerdependencies”
【发布时间】:2015-08-25 19:41:08
【问题描述】:

我按照 Semantic-UI 网站上发布的所有说明来安装框架,即:

  • 安装节点:我已通过运行 node -v 确认它已正确安装,我得到“v0.12.7”。节点安装在 /usr/local/include 中,我已经取消更新 $PATH 以反映更改。
  • 安装 gulp:我运行 sudo npm install -g gulp 在 /usr/local/lib/node_modules 中全局安装 gulp(非 sudo 命令给了我错误并建议使用 sudo 命令)

我 cd 到我的项目文件夹并运行“npm install semantic-ui --save”,我得到了:

npm WARN peerDependencies The peer dependency better-console@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency del@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency extend@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-autoprefixer@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-chmod@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-clone@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-concat@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-concat-css@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-copy@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-flatten@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-header@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-help@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-if@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-less@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-minify-css@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-notify@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-plumber@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-print@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-rename@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-replace@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-rtlcss@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-uglify@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-util@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency gulp-watch@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency map-stream@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency require-dot-file@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN peerDependencies The peer dependency yamljs@* included from semantic-ui will no
npm WARN peerDependencies longer be automatically installed to fulfill the peerDependency 
npm WARN peerDependencies in npm 3+. Your application will need to depend on it explicitly.
npm WARN excluding symbolic link tests/withsymlinks/.hidden -> ../shown/.hidden                         
npm WARN excluding symbolic link tests/withsymlinks/bar.txt -> ../shown/bar.txt                         
npm WARN excluding symbolic link tests/withsymlinks/.hidden -> ../shown/.hidden                         
npm WARN excluding symbolic link tests/withsymlinks/bar.txt -> ../shown/bar.txt 

而不是简单地:

npm WARN excluding symbolic link tests/withsymlinks/.hidden -> ../shown/.hidden                         
npm WARN excluding symbolic link tests/withsymlinks/bar.txt -> ../shown/bar.txt                         
npm WARN excluding symbolic link tests/withsymlinks/.hidden -> ../shown/.hidden                         
npm WARN excluding symbolic link tests/withsymlinks/bar.txt -> ../shown/bar.txt

semantic-ui 网站上的教学视频提示的警告。

(我为长文道歉)

运行它之后,它不会做任何事情,除非我 Ctrl-C 进程。运行命令后,我从未到达以下链接中的视频所访问的自定义面板:

http://semantic-ui.com/introduction/getting-started.html#using-build-tools

该链接还建议了安装 npm 和 node 的其他方法,我尝试了其他方法(每次尝试前始终彻底清洁系统),似乎我正确安装了这些方法,并且它们的路径位于 ~/.bashrc 文件中。我该怎么办?

【问题讨论】:

  • 让它运行,我也遇到这些错误,但它只是一个等待游戏,直到一切都设置好。

标签: node.js npm gulp semantic-ui


【解决方案1】:

出现这个问题是因为npm will be changing the way peer dependencies work in version 3

这个问题is also covered in Semantic UI issues,但现在似乎已经解决了。请再试一次,并确保您给了足够的时间(最多 10-15 分钟,但应该少于这个时间)。如果仍然有问题,请尝试使用 github repo 中最新的 Semantic UI:

git clone https://github.com/Semantic-Org/Semantic-UI.git
cd Semantic-UI
npm install

这应该与运行npm install semantic-ui --save 具有相同的效果,因此您将在npm install 完成后立即获得交互式安装程序。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-07-27
    • 2017-04-09
    • 2015-08-10
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多