Install always failed when executing postinstall script in 1.1265.0
See original GitHub issuePlease make our job easier by filling this template out to completion. If you’re requesting a feature instead of reporting a bug, please feel free to skip the Environment and Reproducible Demo sections.
Description
Probably, this issue is a regression since there is no postinstall
script in 1.1264.0 (https://github.com/wix/react-native-calendars/compare/1.1264.0...1.1265.0). Also, the scripts
directory does not exist inside the node_modules package directory (see the image below).
Step to reproduce:
yarn add react-native-calendars
Expected Behavior
It should install the package successfully.
Observed Behavior
What actually happened when you performed the above actions?
- Error while executing the postinstall script for react-native-calendars
If there’s an error message, please paste the full terminal output and error message in this code block:
error /home/jeffryangtoni/sources/company/github/district-bcd/packages/apps/shared/node_modules/react-native-calendars: Command failed.
Exit code: 1
Command: node ./scripts/postinstall.js
Arguments:
Directory: /home/jeffryangtoni/sources/company/github/district-bcd/packages/apps/shared/node_modules/react-native-calendars
Output:
internal/modules/cjs/loader.js:888
throw err;
^
Error: Cannot find module '/home/jeffryangtoni/sources/company/github/district-bcd/packages/apps/shared/node_modules/react-native-calendars/scripts/postinstall.js'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:885:15)
at Function.Module._load (internal/modules/cjs/loader.js:730:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:72:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
lerna ERR! yarn install --mutex network:42424 --non-interactive exited 1 in 'shared'
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Environment
Please run these commands in the project folder and fill in their results:
npm ls react-native-calendars
:
@company/district-bcd@ /home/jeffryangtoni/sources/company/github/district-bcd
└── (empty)
npm ls react-native
:
@company/district-bcd@ /home/jeffryangtoni/sources/company/github/district-bcd
└── (empty)
Also specify:
- Device/emulator/simulator & OS version:
Samsung S9+ & Android 10
Reproducible Demo
Should be clear since it just only installing the npm package.
Screenshots
scripts
directory does not exist.
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
@iamdainv , I think for your case, it will stick to version
1.1261.0
. But, currently I will stick to1.1264.0
for a while. 🙇I see… seems it has been reported before… I will close this issue and will refer to the main issue. Thank you… 🙇