node.js - hexo出错

查看:255
本文介绍了node.js - hexo出错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

Windows_NT 10.0.14393
npm ERR! argv "E:\node\node.exe" "C:\Users\vip\AppData\Roaming\npm\node_modules\npm\bin\npm-cli.js" "install" "hexo"
npm ERR! node v6.2.0
npm ERR! npm v4.3.0
npm ERR! code ENOSELF

npm ERR! Refusing to install package with name "hexo" under a package
npm ERR! also called "hexo". Did you name your project the same
npm ERR! as the dependency you're installing?
npm ERR!
npm ERR! For more information, see:
npm ERR! https://docs.npmjs.com/cli/in...
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR! https://github.com/npm/npm/is...

npm ERR! Please include the following file with any support request:
npm ERR! C:UsersvipAppDataRoamingnpm-cache_logs2017-02-26T14_11_40_408Z-debug.log

我用npm install hexo出现了这个问题,请问有谁知道这个问题怎么解决?

解决方案

package.json
name的值不能跟npm的包名相同。
我也是刚填的坑。

这篇关于node.js - hexo出错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆