Closed richardszanyi closed 4 years ago
Thanks for reporting this issue. Do you have a history of the exact versions of react-native-calendar-picker
installed? Depending on the type of version specified in package.json, package-lock.json or yarn.lock would record specific versions. Older versions of either react-native-calendar-picker
or its dependency node-git-hooks
had a bug that may be related. To confirm this, would you test adding another new package?
package-lock has a version 6.1.2, as well as package.json specified. New package adding is throwing error still:
The git hooks installation was fixed in 6.1.5. I recommend that you upgrade to 7.0.0 and delete package-lock to ensure that all its dependencies are up to date.
This is with 7.0.0
That sounds like a stale cache issue. Use these steps to clear the cache:
npm install
npm start -- --reset-cache
Ctrl-C
.npm start
(or react-native run-...
for native projects).The --reset-cache
flag requires @react-native-community/cli-tools:
npm install @react-native-community/cli-tools --global
In the future, please paste the logs as text instead of a screenshot. That makes it easier to copy/paste the contents to search.
Today I was needed to install another dependancy to our project. Hence, I used:
Then, I was ok - then I'll just remove node_modules, and install then. I did, npm i worked with safe-area-context, it is added to package.json. Okay, I was like now I can use npm i to resolve the rest of the dependancies:
So I removed node_modules again, then ran 'npm i'.
It worked, and dependencies are resolved.
It concerns me that somehow calendar-picker bugs out with npm dependency resolve, and cannot install any more after installing it.