Windows Script Host prompts this error when trying to run your node cli
Steps to reproduce issue:
- Create simple node 'Hello world' project
- use
npm link
to link the package. - Try running the module using
<packagename>
.
Windows Script Host prompts this error when trying to run your node cli
Steps to reproduce issue:
npm link
to link the package.<packagename>
.I was able to run the module using this link at the to of my index.js(main) file #!/usr/bin/env node
.
In the case of Node.js, this line is used to specify that the script should be run with the Node.js interpreter. When you run a script with this shebang, the shell looks for the node executable in the system's $PATH environment variable and uses it to execute the script.
- answered ChatGPT 🤖