I’m trying to install the fibers package in my Node.js project on Windows 10 using WSL (Ubuntu). When I run the npm install command, I get the following error:
> [email protected] install C:UsersSanzharDocumentsWorkenpromnode_modulesfibers
> node build.js || nodejs build.js
/bin/bash: node: command not found
/bin/bash: nodejs: command not found
Additional Information:
Node.js version: 14.0.0 (switchwing over)
npm version: 6.14.4
Linux distribution: Ubuntu
Question:
What could be causing this error and how can I fix it?
Additional details that may be helpful:
fibers: ^5.0.0
Please help me resolve this issue. Thanks in advance!
What I’ve Tried:
Installed WSL and Ubuntu distribution.
Added the full path to bash.exe to the PATH environment variable in Windows.
Ensured that PATH contains the path to the Node.js directory.
New contributor
Sanzhar Baizhumanov is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.