vue-element-admin 执行install出现git相关问题

btxsgosb  于 21天前  发布在  Git
关注(0)|答案(4)|浏览(44)

npm WARN deprecated core-js@2.6.11: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
npm WARN deprecated browserslist@2.11.3: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm WARN deprecated bfj-node4@5.3.1: Switch to the bfj package for fixes and new features!
npm WARN deprecated browserslist@1.7.7: Browserslist 2 could fail on reading Browserslist >3.0 config used in other tools.
npm ERR! path git
npm ERR! code ENOENT
npm ERR! errno ENOENT
npm ERR! syscall spawn git
npm ERR! enoent Error while executing:
npm ERR! enoent undefined ls-remote -h -t ssh:// git@github.com /eligrey/FileSaver.js.git
npm ERR! enoent
npm ERR! enoent
npm ERR! enoent spawn git ENOENT
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

出现如上在测试服务器执行npm install出现这样问题 难道也要装git环境才可以吗

myzjeezk

myzjeezk1#

Not that. Installing cnpm and then use cnpm install the dependencies. which the last step likes:
cnpm install

nnt7mjpx

nnt7mjpx2#

和你一样的问题啊,你有没有解决,安装了git也没有用

bwleehnv

bwleehnv3#

使用cnpm install解决了

zz2j4svz

zz2j4svz4#

使用cnpm install解决了

Your mean ?

Run npm install cnpm -g
Run npm install

相关问题