2017-02-10 30 views
0

的依賴在我的node.js Twilio的項目文件夾,在執行npm install twilio拒絕安裝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 

任何想法,我錯了,我得到這個錯誤?

回答

1

Twilio開發者傳道士在這裏。

您是否命名了您的軟件包,即package.json「twilio」中的名稱字段?

這是這類問題的regular cause。只需重命名不屬於其依賴關係的軟件包即可。

+0

謝謝philnash! – Kedar