NPM:安装Semantic-UI后,“ semantic”文件夹不会出现

时间:2018-08-26 19:13:43

标签: node.js npm gulp semantic-ui

我正在遵循Linux上的这些说明:

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

安装Semantic-UI。看来安装NodeJS很好。安装gulp时,我收到以下警告,但没有错误。

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

我尝试按照第一行中的说明进行操作,但看起来所做的只是让您记录问题或拉取请求。我对它的工作原理不是很熟悉,但是我的理解是,这只是为了提醒Semantic-UI团队注意问题,因此这并不是真正的错误。除了输入npm updatenpm upgrade之外,我不确定如何更新或升级内容,虽然没有报告任何内容已更新或升级,但我还是这样做了,所以我不确定是否它起作用了。

最初运行语义安装时,它报告它找不到JSON文件,因此在搜索该错误后,我运行了npm init,并且似乎可以解决该问题。但是,当我运行sudo npm install semantic-ui --save时,它会生成

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我得到

node_modules  package.json  package-lock.json

但没有semantic/文件夹,这是其余安装步骤所必需的。因此,在这一点上,我不确定该怎么做-修复依赖项似乎没有用,而且我不确定该怎么办。

1 个答案:

答案 0 :(得分:0)

我发现了问题所在,以某种方式将semantic/文件夹发送到了我的用户文件夹(位于桌面上方)。将文件夹移到我的项目文件夹中,gulp build命令起作用。