You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Installing JEST first time in CRA application fails and then succeeds when attempted after running npm install
To Reproduce
Steps to reproduce the behavior:
create new application using create-react-app
execute npm install
execute npm install --save-dev jest : fails with error
npm WARN deprecated [email protected]: 1.2.0 should have been a major version bump
npm WARN [email protected] requires a peer of ajv@^6.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of babel-eslint@^7.2.3 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@^4.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint-plugin-jsx-a11y@^5.1.1 but none is installed. You must install peer dependencies yourself.
npm WARN [email protected] requires a peer of eslint@>=1.6.0 <5.0.0 but none is installed. You must install peer dependencies yourself.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules\fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Error: EPERM: operation not permitted, rename 'C:\__Repos__\181\Portal\node_modules\.staging\fsevents-31d9d7c4\node_modules\needle' ->'C:\__Repos__\181\Portal\node_modules\.staging\needle-486f5acc'
npm ERR! path C:\__Repos__\181\Portal\node_modules\acorn-globals\node_modules\acorn
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall rename
npm ERR! enoent ENOENT: no such file or directory, rename 'C:\__Repos__\181\Portal\node_modules\acorn-globals\node_modules\acorn' ->'C:\__Repos__\181\Portal\node_modules\react-scripts\node_modules\jsdom\node_modules\acorn'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\ysood\AppData\Roaming\npm-cache\_logs\2018-08-24T00_01_22_529Z-debug.log
excute npm install
execute npm install --save-dev jest : passes this time
Expected behavior
Should install without issues the first time
Run npx envinfo --preset jest
Paste the results here:
System:
OS: Windows 10
CPU: x64 Intel(R) Xeon(R) CPU E5-2686 v4 @ 2.30GHz
Binaries:
npm: 6.1.0 - C:\Program Files\nodejs\npm.CMD
The text was updated successfully, but these errors were encountered:
I've never seen that error, are you able to reproduce it consistently?
That said, CRA comes with Jest, you should not install it yourself. See #5119 (comment).
@gaearon is there any FAQ or something we can point to for these sorts of things? I keep linking to that comment, but maybe some sort of FAQ in the CRA repo would make sense?
This issue was closed because it has been stalled for 7 days with no activity. Please open a new issue if the issue is still relevant, linking to this one.
This issue has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.
Please note this issue tracker is not a help forum. We recommend using StackOverflow or our discord channel for questions.
🐛 Bug Report
Installing JEST first time in CRA application fails and then succeeds when attempted after running npm install
To Reproduce
Steps to reproduce the behavior:
npm install
npm install --save-dev jest
: fails with errornpm install
npm install --save-dev jest
: passes this timeExpected behavior
Should install without issues the first time
Run
npx envinfo --preset jest
Paste the results here:
The text was updated successfully, but these errors were encountered: