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

Install Failed, Error: ENOENT: no such file or directory #725

Closed
winner106 opened this issue Oct 11, 2022 · 11 comments
Closed

Install Failed, Error: ENOENT: no such file or directory #725

winner106 opened this issue Oct 11, 2022 · 11 comments

Comments

@winner106
Copy link

winner106 commented Oct 11, 2022

Install Failed
use npm init slidev or yarn create slidev to create new project, error.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'cmd' or 'powershell'
  2. use npm init slidev or yarn create slidev to create new project
  3. See the error
Windows PowerShell

PS C:\Users\Administrator\Downloads> yarn create slidev
yarn create v1.22.1
warning package.json: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
[3/4] Linking dependencies...
[4/4] Building fresh packages...

success Installed "create-slidev@0.36.6" with binaries:
      - create-slidev
[#######################] 23/23
  ●■▲
  Slidev Creator  v0.36.6Project name: ... slidev
  Scaffolding project in slidev ...
  Done.Install and start it now? ... yesChoose the agent » yarn
yarn install v1.22.1
warning ..\..\package.json: No license field
info No lockfile found.
[1/4] Resolving packages...
[2/4] Fetching packages...
info fsevents@2.3.2: The platform "win32" is incompatible with this module.
info "fsevents@2.3.2" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-android-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info @esbuild/linux-loong64@0.15.10: The platform "win32" is incompatible with this module.
info "@esbuild/linux-loong64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info @esbuild/linux-loong64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info @esbuild/android-arm@0.15.10: The platform "win32" is incompatible with this module.
info "@esbuild/android-arm@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info @esbuild/android-arm@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-android-arm64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-android-arm64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-android-arm64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-darwin-arm64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-darwin-arm64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-darwin-arm64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-darwin-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-darwin-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-freebsd-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-32@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-32@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-32@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-arm@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-arm@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-arm64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-arm64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-ppc64le@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-ppc64le@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-ppc64le@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-mips64le@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-mips64le@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-mips64le@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-riscv64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-riscv64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-riscv64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-linux-s390x@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-linux-s390x@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-linux-s390x@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-netbsd-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-netbsd-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-openbsd-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-openbsd-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-sunos-64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-sunos-64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.15.10: The platform "win32" is incompatible with this module.
info "esbuild-freebsd-arm64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-freebsd-arm64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info esbuild-windows-arm64@0.15.10: The CPU architecture "x64" is incompatible with this module.
info "esbuild-windows-arm64@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
info esbuild-windows-32@0.15.10: The CPU architecture "x64" is incompatible with this module.
info "esbuild-windows-32@0.15.10" is an optional dependency and failed compatibility check. Excluding it from installation.
warning @slidev/theme-default@0.21.2: The engine "slidev" appears to be invalid.
warning theme-vitesse@0.1.14: The engine "vscode" appears to be invalid.
warning @slidev/theme-seriph@0.21.3: The engine "slidev" appears to be invalid.
[3/4] Linking dependencies...
warning "@slidev/cli > postcss-nested@6.0.0" has unmet peer dependency "postcss@^8.2.14".
[4/4] Building fresh packages...
success Saved lockfile.
Done in 20.69s.
yarn run v1.22.1
warning ..\..\package.json: No license field
$ slidev --open
node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[Error: ENOENT: no such file or directory, open 'C:\Users\Administrator\Downloads\slidev\pages\multiple-entries.md'] {
  errno: -4058,
  code: 'ENOENT',
  syscall: 'open',
  path: 'C:\\Users\\Administrator\\Downloads\\slidev\\pages\\multiple-entries.md'
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Error: Command failed with exit code 1: yarn run dev
    at makeError (C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\execa\lib\error.js:60:11)
    at handlePromise (C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\execa\index.js:118:26)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async init (C:\Users\Administrator\AppData\Local\Yarn\Data\global\node_modules\create-slidev\index.js:121:5) {
  shortMessage: 'Command failed with exit code 1: yarn run dev',
  command: 'yarn run dev',
  escapedCommand: 'yarn run dev',
  exitCode: 1,
  signal: undefined,
  signalDescription: undefined,
  stdout: undefined,
  stderr: undefined,
  failed: true,
  timedOut: false,
  isCanceled: false,
  killed: false
}
Done in 27.84s.

Desktop (please complete the following information):

  • Node.js: 16.15
  • OS: Windows_NT x64 10.0.19044
  • Browser:Chrome
  • Slidev version: 0.36.6
@winner106 winner106 changed the title Error: ENOENT: no such file or directory **Install Failed** | Error: ENOENT: no such file or directory Oct 11, 2022
@winner106 winner106 changed the title **Install Failed** | Error: ENOENT: no such file or directory Install Failed, Error: ENOENT: no such file or directory Oct 11, 2022
@scguoi
Copy link

scguoi commented Oct 11, 2022

same with me.

1 similar comment
@haiker2011
Copy link

same with me.

@ervinismu
Copy link

ervinismu commented Oct 11, 2022

same here, using node 16.0.0

@d1b1
Copy link

d1b1 commented Oct 11, 2022

getting this too, from node 14 -18

@ervinismu
Copy link

i think, this issue will appear in slidev version 0.36.6, when i switch to version 0.36.5 using command npm init slidev@0.36.5 and node 16.0.0, it worked

l-moveshelf referenced this issue Oct 12, 2022
Co-authored-by: Anthony Fu <anthonyfu117@hotmail.com>
Luca-Terrazzan pushed a commit to Luca-Terrazzan/slidev that referenced this issue Oct 12, 2022
@Luca-Terrazzan
Copy link

I'm willing to open a PR to solve this but I'm unsure on how to reliably test the npm init locally

@murtuzaalisurti
Copy link

i think, this issue will appear in slidev version 0.36.6, when i switch to version 0.36.5 using command npm init slidev@0.36.5 and node 16.0.0, it worked

this worked for me, thanks!

@PartyLich
Copy link

There may be a fix in #724, but it is unreleased at the time of writing.

@lan720
Copy link

lan720 commented Oct 16, 2022

i think, this issue will appear in slidev version 0.36.6, when i switch to version 0.36.5 using command npm init slidev@0.36.5 and node 16.0.0, it worked

Thank you a lot.The question troubled me the whole afternoon.

@PartyLich
Copy link

@Luca-Terrazzan looks like you deleted your comments. Does that mean you checked the release notes and/or tried 0.36.7 and thus found the answer to your question?

@Luca-Terrazzan
Copy link

@Luca-Terrazzan looks like you deleted your comments. Does that mean you checked the release notes and/or tried 0.36.7 and thus found the answer to your question?

Yes sorry, I misinterpreted the build process. My previous comments were clearly wrong so I deleted them to avoid confusions

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

10 participants