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

npm run dev failed #252

Open
4 tasks done
yin0713 opened this issue Oct 20, 2024 · 0 comments
Open
4 tasks done

npm run dev failed #252

yin0713 opened this issue Oct 20, 2024 · 0 comments

Comments

@yin0713
Copy link

yin0713 commented Oct 20, 2024

Describe the bug

node:fs:441
return binding.readFileUtf8(path, stringToFlags(options.flag));
^

Error: ENOENT: no such file or directory, open 'C:\Users\xx\Desktop\samples\surmon.me-main\dist\template.html'

What should I do for this?Thanks.

Reproduction

npm install
npm run dev ->failed.

System Info

System:
    OS: Windows 10 10.0.19045
    CPU: (16) x64 13th Gen Intel(R) Core(TM) i5-13500H
    Memory: 22.53 GB / 31.73 GB
  Binaries:
    Node: 22.9.0 - D:\Program Files\nodejs\node.EXE
    npm: 10.8.3 - D:\Program Files\nodejs\npm.CMD
  Browsers:
    Edge: Chromium (129.0.2792.52)
    Internet Explorer: 11.0.19041.4355
  npmPackages:
    @braintree/sanitize-url: ^7.1.x => 7.1.0
    @eslint/js: ^9.x => 9.13.0
    @sentry/vite-plugin: ^2.22.x => 2.22.6
    @sentry/vue: ^8.x => 8.34.0
    @types/compression: ^1.7.5 => 1.7.5
    @types/cookie-parser: ^1.4.7 => 1.4.7
    @types/express: ^5.x => 5.0.0
    @types/fs-extra: ^11.0.4 => 11.0.4
    @types/http-proxy: ^1.17.15 => 1.17.15
    @types/lodash-es: ^4.17.12 => 4.17.12
    @types/lozad: ^1.16.4 => 1.16.4
    @types/node: ^22.x => 22.7.7
    @types/qrcode: ^1.5.5 => 1.5.5
    @types/rss: ^0.0.32 => 0.0.32
    @types/serialize-javascript: ^5.0.4 => 5.0.4
    @types/ua-parser-js: ^0.7.39 => 0.7.39
    @unhead/addons: ^1.11.x => 1.11.10
    @unhead/schema: ^1.11.x => 1.11.10
    @unhead/ssr: ^1.11.x => 1.11.10
    @unhead/vue: ^1.11.x => 1.11.10
    @vercel/ncc: ^0.38.2 => 0.38.2
    @vitejs/plugin-vue: ^5.x => 5.1.4
    agentkeepalive: ^4.5.0 => 4.5.0
    axios: ^1.7.x => 1.7.7
    bezier-easing: ^2.1.0 => 2.1.0
    builtin-modules: ^4.x => 4.0.0
    compression: ^1.7.4 => 1.7.4
    cookie-parser: ^1.4.x => 1.4.7
    dotenv: ^16.4.5 => 16.4.5
    emoji-233333: ^0.3.2 => 0.3.2
    eslint: ^9.x => 9.13.0
    eslint-config-prettier: ^9.x => 9.1.0
    eslint-plugin-prettier: ^5.x => 5.2.1
    eslint-plugin-vue: ^9.x => 9.29.0
    express: ^4.21.x => 4.21.1
    fast-xml-parser: ^4.5.x => 4.5.0
    fontmin: ^1.1.x => 1.1.0
    fs-extra: ^11.2.0 => 11.2.0
    geojson: ^0.5.0 => 0.5.0
    globals: ^15.11.x => 15.11.0
    highlight.js: ^11.10.x => 11.10.0
    html-to-image: ^1.11.11 => 1.11.11
    http-proxy: ^1.18.1 => 1.18.1
    intersection-observer: ^0.12.2 => 0.12.2
    js-cookie: ^3.0.x => 3.0.5
    lodash-es: ^4.17.21 => 4.17.21
    lozad: ^1.16.x => 1.16.0
    lru-cache: ^11.x => 11.0.1
    mapbox-gl: ^3.7.x => 3.7.0
    marked: ^14.1.x => 14.1.3
    marked-highlight: ^2.2.x => 2.2.0
    marked-mangle: ^1.1.9 => 1.1.9
    marked-xhtml: ^1.0.11 => 1.0.11
    pinia: ^2.2.x => 2.2.4
    prettier: ^3.x => 3.3.3
    qrcode: ^1.5.x => 1.5.4
    qs: ^6.13.0 => 6.13.0
    redis: ^4.7.0 => 4.7.0
    rss: ^1.2.2 => 1.2.2
    sass: 1.79.x => 1.79.6
    serialize-javascript: ^6.0.2 => 6.0.2
    sitemap: ^8.x => 8.0.0
    swiper: ^11.1.x => 11.1.14
    tsx: ^4.19.x => 4.19.1
    typescript: ^5.6.x => 5.6.3
    typescript-eslint: ^8.x => 8.10.0
    ua-parser-js: ^1.0.x => 1.0.39
    vite: ^5.4.x => 5.4.9
    vue: ^3.5.x => 3.5.12
    vue-router: ^4.4.x => 4.4.5
    wonderful-bing-wallpaper: ^0.3.4 => 0.3.4
    yargs: ^17.7.2 => 17.7.2

Used Package Manager

npm

Validations

  • Read the the documentation in detail.
  • Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • Check that this is a concrete bug. For Q&A open a GitHub Discussion or join our Discord Chat Server.
  • The provided reproduction is a minimal reproducible example of the bug.
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

1 participant