Netlify cli error - EINVAL: invalid argument, read

I’m working with node v11.5 and npm 6.4.1 on a flash drive E, on win 7, I’m trying to install the lastest netlify cli. Following Getting Started with the Netlify CLI , I have:

$ npm install netlify-cli -g
npm ERR! code EINVAL
npm ERR! EINVAL: invalid argument, read

The error log shows pretty much the same thing:

12961 verbose stack Error: EINVAL: invalid argument, read
12961 verbose stack     at E:\nodejs\node_modules\npm\node_modules\gentle-fs\lib\rm.js:245:7
12961 verbose stack     at E:\nodejs\node_modules\npm\node_modules\gentle-fs\node_modules\iferr\index.js:13:50
12961 verbose stack     at E:\nodejs\node_modules\npm\node_modules\graceful-fs\polyfills.js:287:18
12961 verbose stack     at FSReqCallback.oncomplete (fs.js:161:5)
12962 verbose cwd E:\myproj
12963 verbose Windows_NT 6.1.7601
12964 verbose argv "E:\\nodejs\\node.exe" "E:\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "netlify-cli" "-g"
12965 verbose node v11.5.0
12966 verbose npm  v6.4.1
12967 error code EINVAL
12968 error EINVAL: invalid argument, read
12969 verbose exit [ 1, true 

How can I get this working?

PS also posted javascript - EINVAL: invalid argument, read - Stack Overflow

Hi @kc1 and sorry to be slow to get back to you! I’m not sure why that is happening as it’s not a problem we’ve seen before.

Some googling led me to this stackoverflow thread (not yours :))

…where the second answer mentions that npm prefers NTFS formatted removable media to FAT32.

Not sure if that is your solution, but it’s what I’d try next as this doesn’t seem to be a problem with netlify-cli in particular but with npm+your setup