【板栗糖GIS】安装axios出现如下错误
npm ERR! code ENOSELF
npm ERR! Refusing to install package with name “axios” under a package
npm ERR! also called “axios”. 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! A complete log of this run can be found in:
看报错回答,可以得出是因为项目的名称也是axios,
试着将项目名改成axios-copy以及axios-study,依旧会在安装axios出现同名错误提示
后期重建项目名为ax之后,再输入npm install axios --save
安装就能正常进行了。