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

Something should say that node must be higher than v14 #196

Closed
JasonHenriksen opened this issue Dec 3, 2021 · 2 comments
Closed

Something should say that node must be higher than v14 #196

JasonHenriksen opened this issue Dec 3, 2021 · 2 comments

Comments

@JasonHenriksen
Copy link

nvm use 14
Now using node v14.17.6 (npm v6.14.15)
npm run test

FAIL src/main.test.ts
● Test suite failed to run
Cannot find module 'node:process'

nvm use 17
Now using node v17.2.0 (npm v8.1.4)

npm run test
PASS src/main.test.ts


I wasn't familiar with the new "node:process" syntax so it wasn't immediately clear to me that I had a node version problem.

@sindresorhus
Copy link
Owner

node: is supported on the Node.js version targets defined in package.json:

ora/package.json

Lines 15 to 17 in c5026b7

"engines": {
"node": "^12.20.0 || ^14.13.1 || >=16.0.0"
},

@jason-henriksen
Copy link

Right you are. How weird. Because it turns out that it works when I run it from the CLI, but my jest test fails. Sorry that I trusted the test instead of also verifying with the CLI. I have no idea why they behave differently.

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants