Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
311 views
in Technique[技术] by (71.8m points)

hexo出错

Windows_NT 10.0.14393
npm ERR! argv "E: ode ode.exe" "C:UsersvipAppDataRoaming pm ode_modules pmin pm-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出现了这个问题,请问有谁知道这个问题怎么解决?


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

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


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...