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

Error yarn run init #84

Open
Seif-apprentus opened this issue Jan 13, 2022 · 0 comments
Open

Error yarn run init #84

Seif-apprentus opened this issue Jan 13, 2022 · 0 comments

Comments

@Seif-apprentus
Copy link

Seif-apprentus commented Jan 13, 2022

I followed the commands in the Development section, point 4 of readme.me but I got this error!
What's wrong?
Thank you.

bash ❯ yarn run init
yarn run v1.22.5
$ rm -rf .insights && ./packages/insights/bin/insights-init --dev
Welcome to Insights v0.0.72!

This script will create a folder ".insights", which will be used to store
config data. Please add it to .gitignore if you're running this script
inside a project folder!

Do you wish to setup Insights in "login" mode, requiring authentication to
access the interface or in standalone "loginless" mode, which is practical
only when running in localhost.

Setup Insights in "login" mode? (Y/n): n

Creating folder: /home/seifeslimene/insights/.insights

(node:19621) UnhandledPromiseRejectionWarning: Error: Cannot find module 'insights-api/lib/app'
    at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
    at Function.Module._load (internal/modules/cjs/loader.js:562:25)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at Object.<anonymous> (/home/seifeslimene/insights/packages/insights/app/create-superuser.js:7:13)
    at Module._compile (internal/modules/cjs/loader.js:778:30)
    at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
    at Module.load (internal/modules/cjs/loader.js:653:32)
    at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
    at Function.Module._load (internal/modules/cjs/loader.js:585:3)
    at Module.require (internal/modules/cjs/loader.js:692:17)
    at require (internal/modules/cjs/helpers.js:25:18)
    at initInsights (/home/seifeslimene/insights/packages/insights/app/init.js:89:27)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:19621) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:19621) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
@Seif-apprentus Seif-apprentus changed the title Error when yarn run it Error yarn run init Jan 13, 2022
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

1 participant