search

Home  >  Q&A  >  body text

I can't start NPM in the terminal

Whenever I run a command in the terminal to start NPM, I get the following error:

npm ERR!
npm ERR! Did you mean one of these?
npm ERR!     npm star # Mark your favorite packages
npm ERR!     npm stars # View packages marked as favorites
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR!   npm run

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\SB\AppData\Local\npm-cache\_logs23-07-10T09_55_32_164Z-debug-0.log
PS C:\Users\SB\Desktop\react>

P粉715304239P粉715304239234 days ago343

reply all(1)I'll reply

  • P粉495955986

    P粉4959559862024-04-02 09:37:58

    Add the startup command to the script object in the package. Create the json file and open a shell or IDE in the project root directory and run the npm start command.

    reply
    0
  • Cancelreply