create-react-library
create-react-library copied to clipboard
Error running npm install for example folder for [email protected]
× Running npm install in example directory Error: Command failed with exit code 1: npm install npm ERR! code 1 npm ERR! path D:\github\kreattix-design\node_modules\typescript npm ERR! command failed npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c gulp build-eslint-rules npm ERR! 'gulp' is not recognized as an internal or external command, npm ERR! operable program or batch file.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\prpat\AppData\Local\npm-cache_logs\2022-02-28T13_05_00_134Z-debug-0.log at makeError (C:\Users\prpat\AppData\Local\npm-cache_npx\590ca40916156f54\node_modules\execa\lib\error.js:59:11) at handlePromise (C:\Users\prpat\AppData\Local\npm-cache_npx\590ca40916156f54\node_modules\execa\index.js:114:26) at processTicksAndRejections (node:internal/process/task_queues:96:5) at async pEachSeries (C:\Users\prpat\AppData\Local\npm-cache_npx\590ca40916156f54\node_modules\p-each-series\index.js:8:23) { shortMessage: 'Command failed with exit code 1: npm install', command: 'npm install', exitCode: 1, signal: undefined, signalDescription: undefined, stdout: '', stderr: 'npm ERR! code 1\n' + 'npm ERR! path D:\github\kreattix-design\node_modules\typescript\n' + 'npm ERR! command failed\n' + 'npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c gulp build-eslint-rules\n' + "npm ERR! 'gulp' is not recognized as an internal or external command,\n" + 'npm ERR! operable program or batch file.\n' + '\n' + 'npm ERR! A complete log of this run can be found in:\n' + 'npm ERR! C:\Users\prpat\AppData\Local\npm-cache\_logs\2022-02-28T13_05_00_134Z-debug-0.log', failed: true, timedOut: false, isCanceled: false, killed: false }
I am also having this same issue when I select npm and typescript
If you would prefer to ignore this check, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That will permanently disable this message but you might encounter other issues.
To fix the dependency tree, try following the steps below in the exact order:
- Delete package-lock.json (not package.json!) and/or yarn.lock in your project folder.
- Delete node_modules in your project folder.
- Remove "babel-jest" from dependencies and/or devDependencies in the package.json file in your project folder.
- Run npm install or yarn, depending on the package manager you use.
In most cases, this should be enough to fix the problem. If this has not helped, there are a few other things you can try:
-
If you used npm, install yarn (http://yarnpkg.com/) and repeat the above steps with it instead. This may help because npm has known issues with package hoisting which may get resolved in future versions.
-
Check if C:\Users\Frontside\node_modules\babel-jest is outside your project directory. For example, you might have accidentally installed something in your home folder.
-
Try running npm ls babel-jest in your project folder. This will tell you which other package (apart from the expected react-scripts) installed babel-jest.
If nothing else helps, add SKIP_PREFLIGHT_CHECK=true to an .env file in your project. That would permanently disable this preflight check in case you want to proceed anyway.
P.S. We know this message is long but please read the steps above :-) We hope you find them helpful!
I have completed and repeated these steps on fresh install sevral times
Just tried https://github.com/transitive-bullshit/create-react-library too. Failed for me as i don't have gulp installed. Should gulp be installed as part of your build scripts, or have i missed something?
Gulp should not be a requiem,ent the library should have all requirements in the package.json
Shaun Pritchard Computer Data Science & Software Engineering Cell: 813-822-1354 http://voice.google.com/calls?a=nc,%2B18138221354
On Mon, Mar 14, 2022 at 11:37 AM Joseph Jobbings @.***> wrote:
Just tried https://github.com/transitive-bullshit/create-react-library too. Failed for me as i don't have gulp installed. Should gulp be installed as part of your build scripts, or have i missed something?
— Reply to this email directly, view it on GitHub https://github.com/transitive-bullshit/create-react-library/issues/366#issuecomment-1066965053, or unsubscribe https://github.com/notifications/unsubscribe-auth/AFKYSLWO2QGWVTD4SBOWYP3U75MMRANCNFSM5PRCNLIQ . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.
You are receiving this because you commented.Message ID: @.*** com>
only solution i found: downgrade NPM.. is not a nice solution but this version is "only" 3 months old https://www.npmjs.com/package/npm/v/6.14.16