安装NativeBase npm install native-base --save
时,我得到了这个,我的项目效果不佳
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\jest.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\jest
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\jest as it wasn't installed by E:\ReactNative\Project\node_modules\jest
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\json5.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\json5
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\json5 as it wasn't installed by E:\ReactNative\Project\node_modules\json5
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esparse.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esvalidate.cmd as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esparse as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
npm WARN rm not removing E:\ReactNative\Project\node_modules\.bin\esvalidate as it wasn't installed by E:\ReactNative\Project\node_modules\esprima
尝试更新:
npm i
如果不起作用,检查哪些文件或文件夹被错误删除或编辑!
然后尝试npm install native-base --save
并重新安装......
当你想要构建清理项目并重建它