-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Cannot find module 'ts-node/register' #2904
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
Comments
hi @objectiveSee thanks for the report, can you provide the version of yarn you have ben default? |
|
@objectiveSee we should be correcting this via yarnrc already, could you re-run with |
@frankcalise just re-ran with |
@objectiveSee is that file getting created at all? |
Did you try creating the file and installing? yarnrc.yml nodeLinker: node-modules |
Describe the bug
Igniting a new app will fail with the following error. Specifically, it seems that
npx expo install
is run during Ignite's setup and that is the command which is failing. Re-runningnpx expo install
will yield the same error. I was able to resolve this with a few alternatives:Solutions:
a. Template should use old version of yarn, by adding key to package.json to pass yarn @1.x
eg.
"packageManager": "[email protected]"
b. Add
.yarnrc.yml
withnodeLinker: node-modules
c. Use alternative to
yarn
¯_(ツ)_/¯Options passed:
Reference
This question was also posted on Slack:
Ignite version
10.1.6
Additional info
🤖 > npx ignite-cli doctor
System
platform darwin
arch arm64
cpu 14 cores Apple M3 Max
directory hello /Users/anonymous/workspace/hello
~/.npm/_npx/e31027f3785124a8/node_modules/gluegun/build/index.js:15
throw up;
^
Error: Command failed: pnpm --version
~/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21601
if (key == null || signature == null) throw new Error(
Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}
);^
Error: Cannot find matching keyid: {"signatures":[{"sig":"MEYCIQDbcyRXEEpUvMj22WsicmOsvx+ctqHZv1vLScf3/247EAIhANfMkRDNAHdtTDNZ34BVH2z2z0Ef8o5VK4osH6ES9RHW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]}
at verifySignature (
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21601:47)/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21619:5)at fetchLatestStableVersion (
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at async fetchLatestStableVersion2 (
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21738:14)/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:22340:23)at async Engine.getDefaultVersion (
at async Engine.executePackageManagerRequest (
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:22432:47)/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:23136:5)at async Object.runMain (
Node.js v22.5.1
code: 1,
killed: false,
signal: null,
cmd: 'pnpm --version',
stdout: '',
stderr: '
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21601\n' +/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21601:47)\n' +' if (key == null || signature == null) throw new Error(
Cannot find matching keyid: ${JSON.stringify({ signatures, keys })}
);\n' +' ^\n' +
'\n' +
'Error: Cannot find matching keyid: {"signatures":[{"sig":"MEYCIQDbcyRXEEpUvMj22WsicmOsvx+ctqHZv1vLScf3/247EAIhANfMkRDNAHdtTDNZ34BVH2z2z0Ef8o5VK4osH6ES9RHW","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"keys":[{"expires":null,"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","keytype":"ecdsa-sha2-nistp256","scheme":"ecdsa-sha2-nistp256","key":"MFkwEwYHKoZIzj0CAQYIKoZIzj0DAQcDQgAE1Olb3zMAFFxXKHiIkQO5cJ3Yhl5i6UPp+IhuteBJbuHcA5UogKo0EWtlWwW6KSaKoTNEYL7JlCQiVnkhBktUgg=="}]}\n' +
' at verifySignature (
' at fetchLatestStableVersion (
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21619:5)\n' +/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:21738:14)\n' +' at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n' +
' at async fetchLatestStableVersion2 (
' at async Engine.getDefaultVersion (
/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:22340:23)\n' +/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:22432:47)\n' +' at async Engine.executePackageManagerRequest (
' at async Object.runMain (~/.nvm/versions/node/v22.5.1/lib/node_modules/corepack/dist/lib/corepack.cjs:23136:5)\n' +
'\n' +
'Node.js v22.5.1\n'
}
Node.js v22.5.1
The text was updated successfully, but these errors were encountered: