【问题标题】:Refusing to install twilio as a dependency of itself拒绝将 twilio 安装为自身的依赖项
【发布时间】:2017-09-11 06:21:09
【问题描述】:

在我的 node.js Twilio 项目文件夹中,执行 npm install twilio 时出现此错误

c:\...\Twilio>npm install twilio
npm ERR! Windows_NT 10.0.14393
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "twilio"
npm ERR! node v6.2.0
npm ERR! npm  v3.8.9
npm ERR! code ENOSELF

npm ERR! Refusing to install twilio as a dependency of itself
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <https://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     c:\...\Twilio\npm-debug.log

知道我哪里出错了吗?

【问题讨论】:

    标签: node.js twilio twilio-api google-api-nodejs-client


    【解决方案1】:

    这里是 Twilio 开发者宣传员。

    你有没有为你的包命名,即package.json中的名称字段,“twilio”?

    这是此类问题的regular cause。只需将包重命名为不属于其依赖项之一的名称即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2015-01-31
      • 2020-07-04
      • 2015-11-20
      • 1970-01-01
      • 2011-10-15
      • 2016-08-21
      • 1970-01-01
      相关资源
      最近更新 更多