Topic: Npm error
Eric Leroy free asked 5 years ago
npm install mdbootstrap works fine but when I want to install other packages I get:
npm ERR! path /Users/xxxxx/code/yyyy/node_modules/mdbootstrap
npm ERR! code EISGIT
npm ERR! git /Users/xxxxx/code/yyyy/node_modules/mdbootstrap: Appears to be a git repo or submodule.
npm ERR! git /Users/xxxxx/code/yyyy/node_modules/mdbootstrap
npm ERR! git Refusing to remove it. Update manually,
npm ERR! git or move it out of the way first.
Thanks for your help
Bartłomiej Malanowski staff answered 5 years ago
That's a terrible issue and we'll fix it in the next release. Currently, you can try to use yarn instead of npm. I've checked and the issue doesn't appear when I use yarn. I'll also update our repository to prevent publishing .git directory in the npm package
Eric Leroy free commented 5 years ago
A wait solution – with npm – is to remove mdbootstrap from package.json, install the new package and then reinstall md. Dirty but it works! HTH
FREE CONSULTATION
Hire our experts to build a dedicated project. We'll analyze your business requirements, for free.
Answered
- ForumUser: Free
- Premium support: No
- Technology: MDB jQuery
- MDB Version: 4.7.7
- Device: Imac
- Browser: Chrome
- OS: Mac os 10.14.2
- Provided sample code: No
- Provided link: No