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 run npm init svelte@next #2471

Closed
FelixChanCh opened this issue Sep 22, 2021 · 1 comment
Closed

Cannot run npm init svelte@next #2471

FelixChanCh opened this issue Sep 22, 2021 · 1 comment

Comments

@FelixChanCh
Copy link

Describe the bug

The error I got when I was going to create a new project:

> npx: installed 5 in 0.88s
> /home/felix/.npm/_npx/11479/lib/node_modules/create-svelte/bin.js:2
> import fs from 'fs';

Should it be import {fs} from 'fs' instead? Thanks

Reproduction

npm init svelte@next

Logs

No response

System Info

N/A

Severity

blocking all usage of SvelteKit

Additional Information

No response

@Conduitry
Copy link
Member

No, it shouldn't be import {fs} from 'fs'. It sounds like you're running Node 10 or earlier, which isn't supported, but you didn't fill out the "System Info" section where you should have listed that.

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