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

package.json invalid main entry #29

Closed
MaziniiX opened this issue Dec 1, 2022 · 1 comment
Closed

package.json invalid main entry #29

MaziniiX opened this issue Dec 1, 2022 · 1 comment

Comments

@MaziniiX
Copy link

MaziniiX commented Dec 1, 2022

When running the nmp i command with PowerShell i got this error:

npm ERR! code 1
npm ERR! path D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install.js
npm ERR! node:internal/modules/cjs/loader:400
npm ERR! const err = new Error(
npm ERR! ^
npm ERR!
npm ERR! Error: Cannot find module 'D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\ms\index'. Please verify that the package.json has a valid "main" entry
npm ERR! at tryPackage (node:internal/modules/cjs/loader:400:19)
npm ERR! at Module._findPath (node:internal/modules/cjs/loader:613:18)
npm ERR! at Module._resolveFilename (node:internal/modules/cjs/loader:981:27)
npm ERR! at Module._load (node:internal/modules/cjs/loader:841:27)
npm ERR! at Module.require (node:internal/modules/cjs/loader:1061:19)
npm ERR! at require (node:internal/modules/cjs/helpers:103:18)
npm ERR! at setup (D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\debug\src\common.js:14:25)
npm ERR! at Object. (D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\debug\src\node.js:240:37)
npm ERR! at Module._compile (node:internal/modules/cjs/loader:1159:14)
npm ERR! at Module._extensions..js (node:internal/modules/cjs/loader:1213:10) {
npm ERR! code: 'MODULE_NOT_FOUND',
npm ERR! path: 'D:\Users\Enderbot\Desktop\bloxflip-autocrash\node_modules\puppeteer\node_modules\ms\package.json', npm ERR! requestPath: 'ms'
npm ERR! }
npm ERR!
npm ERR! Node.js v18.12.1 npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Enderbot\AppData\Local\npm-cache_logs\2022-12-01T21_15_34_544Z-debug-0.log

@carince
Copy link
Owner

carince commented Dec 5, 2022

You need to install the needed modules for the app to work, follow these instructions:

  1. Delete the node_modules folder
  2. Run PowerShell inside of the folder
  3. Run the command: npm i and wait for it to install all the modules.
  4. Run the app again.

@carince carince closed this as completed Apr 20, 2023
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

2 participants