簡體   English   中英

我下載了一個 zip 文件並解壓縮了文件,但我無法使用 npm start 運行它:reactj.s

[英]I downloaded a zip and extracted the files but I can't run it using npm start : reactj.s

npm run start

npm ERR! code ENOENT

npm ERR! syscall open

npm ERR! path C:\Users\xsaya\Downloads\dates-bazaar-master\package.json

npm ERR! errno -4058npm ERR! enoent ENOENT: no such file or directory, open 'C:\Users\xsaya\Downloads\dates-bazaar-master\package.json'npm ERR! enoent This is related to npm not being able to find a file.

npm ERR! enoent

npm ERR! A complete log of this run can be found in:

npm ERR!     C:\Users\xsaya\AppData\Roaming\npm-cache\_logs\2020-08-26T08_29_51_127Z-debug.log

您可以嘗試以下之一:

  1. 第一次運行

    npm init

    創建package.json

  2. 如果有package-lock.json ,請刪除它

查看是否有 package.json 文件。

你做了什么: npm install

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM