Cannot use NPM to install Jest
See original GitHub issue🐛 Bug Report
When I am attempting to run npm install -D jest
it shows this text in console:
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN tar EINVAL: invalid argument, futime
npm WARN portfolio@1.0.0 No description
npm WARN portfolio@1.0.0 No repository field.
npm ERR! Maximum call stack size exceeded
npm ERR! A complete log of this run can be found in:
npm ERR! view logs
To Reproduce
Attempt to install Jest as a dependency inside the Nodejs Environment.
Expected behavior
Should Install Dependency for me to use!
envinfo
System:
OS: Windows 10 10.0.18363
CPU: (12) x64 Intel(R) Core(TM) i7-9750H CPU @ 2.60GHz
Memory: 7.70 GB / 15.82 GB
Binaries:
Node: 12.18.0 - C:\Program Files\nodejs\node.EXE
npm: 6.14.4 - C:\Program Files\nodejs\npm.CMD
Utilities:
Git: 2.27.0. - C:\Program Files\Git\mingw64\bin\git.EXE
IDEs:
VSCode: 1.45.1 - C:\Users\shaun\AppData\Local\Programs\Microsoft VS Code\bin\code.CMD
Languages:
Bash: 4.4.23 - C:\Program Files\Git\usr\bin\bash.EXE
Perl: 5.30.2 - C:\Program Files\Git\usr\bin\perl.EXE
Browsers:
Edge: 44.18362.449.0
Internet Explorer: 11.0.18362.1
(I use Chrome)
I am also storing my files on an External Hard Drive
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:14 (3 by maintainers)
Top Results From Across the Web
Cannot manage to install jest - Stack Overflow
I am using npm to install jest in order to perform some tests over my js code. In order to install it I...
Read more >Getting Started - Jest
Install Jest using your favorite package manager: npm; Yarn. npm install --save-dev jest.
Read more >jest - npm
Start using jest in your project by running `npm i jest`. There are 11265 other projects in the npm registry using jest.
Read more >ts-jest - npm
A Jest transformer with source map support that lets you use Jest to test ... Prerequisites, npm i -D jest typescript, yarn add...
Read more >jest-watch-typeahead - npm
Jest plugin for filtering by filename or test name. Latest version: 2.2.1, last published: a month ago. Start using jest-watch-typeahead in ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This issue appears to be directly related to a similar
invalid argument, read
issue that has appeared in multiple forums. I ran into this today and found the solution from those posts. This does appear to be an npm bug, but it only occurs when updating certain packages, and only whennpm install
is being executed on an external drive which is formatted as exFAT or FAT32. The solution that worked for me was to move everything off the drive, reformat as NTFS, and move everything back.See this post on the npm community forums (and the many linked posts in the first response) https://npm.community/t/issues-installing-npm-packages/9262
Yes, I deleted the Cache also for NPM. Restarted my computer. It installs all of the dependencies but Jest. I updated NodeJs and NPM also.
EDIT: interestingly enough, it installs if I do the installation on my computer hard drive and not my external hard drive. I wonder why that is…