Since installing bun on my Windows 11 pc and using node.js with npm for a several years, all of the npm functionality have crashed such as npm start and npm create in react.js and react-native. Also running bun crashes such as bun create or bun start. In the Windows command line, I get this error in all cases:
error: could not create process
Bun failed to remap this bin to its proper location within node_modules. This is an indication of a corrupted node_modules directory.
Please run 'bun install --force' in the project root and try it again. If this message persists, please open an issue: https://github.com/oven-sh/bun/issues
As a result, the react and node.js apps do not work or cannot create new apps. Current versions: Node: v22.18.0, NPM v11.5.2 and Bun: 1.2.21
Anyone knows the issue or a fix?
I have tried re-installng Node, NPM and Removing Bun. Also reordering the System environment variable for Node and Bun. Individual projects like React deleting node modules and using npm install