Danny,
Thanks for the response. I am a Newbie to nodejs, npm, wsl and visual studio (about 4 months of sporadic use). For that reason I am trying to log in detail
the environment set up so that it can be consistently repeated by myself and others in the future. By doing that I am hoping to avoid the issues I have been running into with the reporters not being found. Thanks for bearing with me on all the questions.
I am confused as to what the steps should have been when using a combination of WSL, debian linux distro, Node, Visual Studio, and Newman. My confusion is
how to share the newman which I installed in the distro with visual studio and why the currently installed one does not get recognized. Several of the documentation links on npm mentioned installing any package you would use as a command with the –g option.
The –g option should make the package available for all directories for that user, correct? When I install node in WSL Visual Studio is aware of it.
I ran sudo npm install -g newman on the WSL command line (debian distro). And I can see that the install worked on the WSL command line. So my question is why would the npm install –S be required in Visual studio. Wouldn’t that create another local node_modules directory? And why is
that needed?
Thanks,
Jill
jillski@DESKTOP-21UQP5M:~ npm config editjillski@DESKTOP-21UQP5M:~ node -v
v13.5.0
jillski@DESKTOP-21UQP5M:~$ npm -v
6.13.4
jillski@DESKTOP-21UQP5M:~$ newman -v
4.5.7
jillski@DESKTOP-21UQP5M:~$ which node
/usr/bin/node
jillski@DESKTOP-21UQP5M:~$ which npm
/usr/bin/npm
jillski@DESKTOP-21UQP5M:/mnt/d/mddb_qa$ which newman
/usr/bin/newman
jillski@DESKTOP-21UQP5M:/mnt/d/mddb_qa$ ls -ltr /usr/bin/newman
lrwxrwxrwx 1 root root 40 Jan 7 13:53 /usr/bin/newman -> …/lib/node_modules/newman/bin/newman.js
jillski@DESKTOP-21UQP5M:/mnt/d/mddb_qa$ ls -ltr /usr/lib/node_modules/newman/
total 88
-rw-r–r-- 1 root root 36308 Oct 26 1985 README.md
-rw-r–r-- 1 root root 14348 Oct 26 1985 MIGRATION.md
-rw-r–r-- 1 root root 11357 Oct 26 1985 LICENSE.md
-rw-r–r-- 1 root root 649 Oct 26 1985 index.js
-rw-r–r-- 1 root root 14317 Oct 26 1985 CHANGELOG.yaml
drwxr-xr-x 1 root root 512 Jan 7 13:53 test
drwxr-xr-x 1 root root 512 Jan 7 13:53 lib
drwxr-xr-x 1 root root 512 Jan 7 13:53 bin
drwxr-xr-x 1 root root 512 Jan 7 13:53 examples
drwxr-xr-x 1 root root 512 Jan 7 13:53 npm
drwxr-xr-x 1 root root 512 Jan 7 13:53 docker
-rw-r–r-- 1 root root 3292 Jan 7 13:53 package.json
drwxr-xr-x 1 root root 512 Jan 7 13:53 node_modules