NPM:安装语义UI,"语义"文件夹不会出现



我正在遵循Linux的以下说明:

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

以安装语义用户界面。 似乎安装 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

我尝试按照第一行中的说明进行操作,但看起来它所做的只是让您记录问题或拉取请求。 我不太熟悉它是如何工作的,但我的理解是,这只是为了提醒语义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/文件夹,这是其余安装步骤所必需的。 所以在这一点上我不确定该怎么做 - 修复依赖项似乎不起作用,我不确定还能做些什么。

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

最新更新