【发布时间】:2018-08-26 19:13:43
【问题描述】:
我在 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 update 和npm upgrade 之外,我不确定如何更新或升级东西,我这样做了,虽然它没有报告任何更新或升级,所以我不确定它是否有效。
最初运行 Semantic 安装时,它报告找不到 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 我得到 p>
node_modules package.json package-lock.json
但没有semantic/ 文件夹,这是其余安装步骤所必需的。所以在这一点上,我不确定该怎么做——修复依赖项似乎没有奏效,我不确定还能做些什么。
【问题讨论】:
标签: node.js npm gulp semantic-ui