question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot find module '@sveltejs/adapter-node'

See original GitHub issue

Describe the bug clean install of the sveltekit demo produces an error when attempting to run

Logs

bastinald@Kevins-MacBook-Pro llc-app % npm run dev

~TODO~@0.0.1 dev svelte-kit dev

Cannot find module ‘@sveltejs/adapter-node’ Require stack:

  • /Users/bastinald/Sites/llc-app/svelte.config.cjs Error: Cannot find module ‘@sveltejs/adapter-node’ Require stack:
  • /Users/bastinald/Sites/llc-app/svelte.config.cjs at Function.Module._resolveFilename (node:internal/modules/cjs/loader:924:15) at Function.Module._load (node:internal/modules/cjs/loader:769:27) at Module.require (node:internal/modules/cjs/loader:996:19) at require (node:internal/modules/cjs/helpers:92:18) at Object.<anonymous> (/Users/bastinald/Sites/llc-app/svelte.config.cjs:1:14) at Module._compile (node:internal/modules/cjs/loader:1092:14) at Object.Module._extensions…js (node:internal/modules/cjs/loader:1121:10) at Module.load (node:internal/modules/cjs/loader:972:32) at Function.Module._load (node:internal/modules/cjs/loader:813:14) at ModuleWrap.<anonymous> (node:internal/modules/esm/translators:201:29)

To Reproduce

npm init svelte@next my-app
cd my-app
npm install
npm run dev

select the demo, not the skeleton when installing

Expected behavior the app to build and open in my browser

browser = chrome

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5

github_iconTop GitHub Comments

3reactions
centratelemediacommented, Mar 20, 2022

I have same problem, problem solve by install:

npm i -D @sveltejs/adapter-node@next
2reactions
DoisKohcommented, Apr 5, 2022

I have the same problem, @sveltejs/adapter-node is already installed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

@sveltejs/adapter-node - npm
Start using @sveltejs/adapter-node in your project by running `npm i @sveltejs/adapter-node`. There are 16 other projects in the npm ...
Read more >
cannot find package sveltejs/adapter-auto svelte.config.js
I am using VS Code for the project. The issue is related to opening the project in VS Code, opening a terminal, and...
Read more >
@sveltejs/adapter-node - npm Package Health Analysis | Snyk
We found a way for you to contribute to the project! Looks like @sveltejs/adapter-node is missing a security policy. You can connect your...
Read more >
Adapters • Docs • SvelteKit
See the adapter-auto README for information on adding support for new environments. ... To create a simple Node server, install the @sveltejs/adapter-node ......
Read more >
Support - Netlify Support Forums
... when trying to deploy sveltekit to netlify: Cannot find module '. ... node modules 8:06:21 PM: Finished restoring cached node modules ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found