Este es mi paquete.json:
{ "name": "testJs", "type": "module", "version": "1.0.0", "description": "", "main": "index.js", "bin": { "testJs": "index.js" }, "scripts": { "test": "echo \"Error: no test specified\" && exit 1" }, "keywords": [], "author": "", "license": "ISC", "dependencies": { ... } } Hago npm i -g . en mi nivel de proyecto y espero poder ejecutar testJs globalmente, pero ¿esto es lo que obtengo? ¿Alguna idea?
C:\Users\myComputer\testJs>npm i -g . added 1 package, and audited 2 packages in 1s found 0 vulnerabilities C:\Users\myComputer\testJs>testJs 'testJs' is not recognized as an internal or external command, operable program or batch file.Como dijo @tushar-shahi , intenta ejecutar testJs en lugar de jsTest después de npm i -g .