Skip to content

The command npm init slidev@latest seems to end with a bunch of errors #231

Answered by sugatoray
sugatoray asked this question in Q&A
Discussion options

You must be logged in to vote

Solved 👍

I was able to resolve the installation issue using the following steps. See Option 2: Update Node.js with NPM (Node Package Manager) in this document.

  1. First, clear the npm cache.

    npm cache clean -f
  2. Install n, Node’s version manager.

    sudo npm install -g n
  3. With the n module installed, install the latest stable version of node.

    sudo n stable

    After this step there was a path update:

    the node command changed location and the old location may be remembered in your current shell.

    • old : /usr/bin/node
    • new : /usr/local/bin/node
  4. Finally, open a new terminal and run npm init slidev. This worked for me and the server started without any error. ⚡

Output of steps: (1, 2, 3)

(b…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by sugatoray
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant