首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >NPM:正在安装Semantic-UI,没有出现`semanti`文件夹

NPM:正在安装Semantic-UI,没有出现`semanti`文件夹
EN

Stack Overflow用户
提问于 2018-08-27 03:13:43
回答 1查看 679关注 0票数 0

对于Linux,我遵循以下说明:

https://semantic-ui.com/introduction/getting-started.html

安装Semantic-UI。安装NodeJS似乎进行得很顺利。在安装gulp时,我得到以下警告,但没有错误。

代码语言: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 graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
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

我尝试按照第一行中的说明进行操作,但它看起来只是让您记录问题或拉出请求。我不太熟悉它是如何工作的,但我的理解是,这只是为了提醒语义UI团队注意问题,所以这并不是真正导致我的错误的原因。我不确定如何更新或升级东西,除了进入npm updatenpm upgrade,我做到了,尽管它没有报告任何更新或升级,所以我不确定它是否工作。

最初运行语义安装时,它报告找不到JSON文件,所以在搜索了这个错误后,我运行了npm init,这似乎修复了它。但是,当我运行sudo npm install 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 graceful-fs@3.0.11: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js
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 browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated gulp-util@2.2.20: gulp-util is deprecated - replace it, following the guidelines at https://medium.com/gulpjs/gulp-util-ca3b1f9f9ac5
npm WARN deprecated hoek@2.16.3: The major version is no longer supported. Please update to 4.x or newer

> semantic-ui@2.3.3 install /home/abcd/Web/ExplainSemantic/node_modules/semantic-ui
> gulp install

[14:52:34] Using gulpfile ~/Web/ExplainSemantic/node_modules/semantic-ui/gulpfile.js
[14:52:34] Starting 'install'...

Current version of Semantic UI already installed
npm WARN explainsemantic@1.0.0 No repository field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@1.2.4 (node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.2.4: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})

+ semantic-ui@2.3.3
updated 1 package in 4.06s

当我ls的时候我会得到

代码语言:javascript
复制
node_modules  package.json  package-lock.json

但没有semantic/文件夹,这是其余安装步骤所必需的。因此,在这一点上,我不确定该怎么做--修复依赖关系似乎没有起作用,我也不确定还能做些什么。

EN

回答 1

Stack Overflow用户

发布于 2018-08-27 04:46:02

我发现了问题所在,不知何故,semantic/文件夹被发送到了我的user文件夹(就在桌面上方)。将文件夹移到我的项目文件夹中,gulp build命令就起作用了。

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

https://stackoverflow.com/questions/52029485

复制
相关文章

相似问题

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