Open kgilpin opened 1 year ago
It is assumed that the user already installed the agent either via the installer or directly by running npm install --save-dev @appland/appmap-agent-js
. Here, we use npx
for execution not for installation. Afaik there is no npm
command that only performs package execution. And I don't think it is wise to suggest npx @appland/appmap-agent-js -- npx jest
because we want to list the agent in the project dev dependencies. So maybe it is just a matter of communicating this info to the user?
@kgilpin I think we should make it explicit in the doc that this command will only work if the agent has already been installed. What do you think?
What about yarn? Suggesting npx
anything is confusing for Yarn users.
On Fri, Dec 30, 2022 at 7:50 AM Laurent Christophe @.***> wrote:
@kgilpin https://github.com/kgilpin I think we should make it explicit in the doc that this command will only work if the agent has already been installed. What do you think?
— Reply to this email directly, view it on GitHub https://github.com/getappmap/appmap-agent-js/issues/163#issuecomment-1367902796, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAVC63SQERIG536WPS3ZG3WP3LCXANCNFSM6AAAAAATICZOBI . You are receiving this because you were mentioned.Message ID: @.***>
I am using the instructions for recording jest test cases.
The suggested command does not find the package in NPM.