Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot find module 'pseudoexec' #843

Closed
DavidGOrtega opened this issue Dec 14, 2021 · 9 comments · Fixed by #844
Closed

Cannot find module 'pseudoexec' #843

DavidGOrtega opened this issue Dec 14, 2021 · 9 comments · Fixed by #844
Assignees
Labels
flaky Heisenbugs p0-critical Max priority (ASAP) testing Unit tests & debugging

Comments

@DavidGOrtega
Copy link
Contributor

Tests are not passing. When executing

npm install -g

we have Cannot find module 'pseudoexec'

@DavidGOrtega DavidGOrtega added testing Unit tests & debugging flaky Heisenbugs p0-critical Max priority (ASAP) labels Dec 14, 2021
@DavidGOrtega
Copy link
Contributor Author

Can not be reproduced locally

@casperdcl
Copy link
Contributor

Assigned @0x2b3bfa0 just in case it's something that needs fixing at https://github.com/0x2b3bfa0/node-pseudoexec :)

@casperdcl
Copy link
Contributor

PR where this was discovered: #842

@DavidGOrtega
Copy link
Contributor Author

DavidGOrtega commented Dec 14, 2021

Its happening everywhere #827

@0x2b3bfa0
Copy link
Member

Apparently, it happens because the global install is just a symbolic link to the GitHub Actions workspace directory.

$ ls -l /usr/local/bin/../lib/node_modules/@dvcorg/cml
lrwxrwxrwx 1 runner docker 39 Dec 14 17:03 /usr/local/bin/../lib/node_modules/@dvcorg/cml -> ../../../../../home/runner/work/cml/cml

Running npm install --global && npm install solves the issue by also downloading dependencies to the local node_modules but it's just a workaround, not a fix.

@0x2b3bfa0
Copy link
Member

0x2b3bfa0 commented Dec 14, 2021

I wonder if somebody at npm mistakenly turned npm install into npm link 🤔

@0x2b3bfa0
Copy link
Member

It looks like npm install --global is just linking the package, and does not install any dependencies from package.json 🤔

@0x2b3bfa0
Copy link
Member

Noting is inherently wrong with the pseudoexec module apart from being the first import in the file, by the way.

@casperdcl
Copy link
Contributor

eek... npm/cli/issues?q=symlinks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
flaky Heisenbugs p0-critical Max priority (ASAP) testing Unit tests & debugging
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants