Issue:
I just updated my WSL installation after installing the Fall Creators Update and now when I run npm i
I get the following warnings from npm
I get probably 2-20 of these warnings from random packages each time I install, it's never consistent. Sometimes it even works, no warnings. I thought that this might be okay, but when I run my project npm run dev
I get all sorts of errors. It seems to me that the packages aren't installing correctly. But on the occasion when it doesn't show warnings the application runs as expected. I tested with some random projects from GitHub and same issue.
Versions:
- NPM Version: 5.5.1
- NodeJS Version: 8.9.0
- Other Factors: ZSH
ERROR:
npm WARN tar EINVAL: invalid argument, open '/mnt/c/Users/Me/Documents/project/node_modules/.staging/parse-json-07a114c7/index.js'
npm WARN tar EINVAL: invalid argument, open '/mnt/c/Users/Me/Documents/Project/node_modules/.staging/esrecurse-fe2bc2eb/package.json'
Notes:
- Tried a fresh install of WSL, same issue
- can install globally without issue, only seems to fail in the
/mnt/**
path. - Can confirm it works in the Linux folders, successful installation in home directory, but breaks on
/mnt/**
EDIT: After much troubleshooting I decided to run without ZSH and switching back to using bash.exe
instead of the suggested wsl.exe
. First install worked. Testing further.