【问题标题】:NPM refusing to install Semantic-UINPM 拒绝安装 Semantic-UI
【发布时间】:2016-10-26 20:19:39
【问题描述】:

我无法安装 Semantic-UI 并出现此错误,

npm ERR! Linux 4.4.0-28-generic
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "semantic-ui" "--save"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ENOSELF
npm ERR! Refusing to install semantic-ui as a dependency of itself

【问题讨论】:

    标签: node.js linux css npm semantic-ui


    【解决方案1】:

    你的 package.json 文件的 name 属性是“semantic-ui”吗?如果是,请将其更改为不是包依赖项名称的其他名称。

    此外,在“ENOSELF”上进行的快速 Google 搜索发现了这一点 - https://github.com/npm/npm/issues/12884

    【讨论】:

      猜你喜欢
      • 2015-07-27
      • 1970-01-01
      • 2019-01-28
      • 2019-10-18
      • 2020-07-04
      • 1970-01-01
      • 2018-01-13
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多