Mainframe-Archive / mainframe-os

Mainframe OS
https://mainframeos.com
MIT License
44 stars 9 forks source link

[MODULE_NOT_FOUND] Error Plugin: @mainframe/cli: Cannot find module '@mainframe/app-manifest' #377

Closed Robsonsjre closed 5 years ago

Robsonsjre commented 5 years ago

Description

Im using linux and trying to compile and run Mainframe OS from source following this instructions and after running:

packages/cli/bin/run env:create

it shows the error:

[MODULE_NOT_FOUND] Error Plugin: @mainframe/cli: Cannot find module '@mainframe/app-manifest'

How to Reproduce

  1. Use linux, compile and run from source
  2. git clone https://github.com/MainframeHQ/mainframe-os.git
  3. cd mainframe-os
  4. git checkout release-v0.2
  5. yarn install in the root
  6. yarn install in each packages/folder
  7. packages/cli/bin/run env:create

Enviroment

Distributor ID: Ubuntu
Description:    Ubuntu 16.04.5 LTS
Release:    16.04
Codename:   xenial
Node version: 10.15.3
Npm version: 6.4.1
mosic commented 5 years ago

Hi Rob, instead of running yarn install in each package dir, just run yarn build in the root and that should handle everything for you.

Robsonsjre commented 5 years ago

Hi @mosic, when I run yarn buildit throws an error showing that some modules are missing inside the packages folder

lerna ERR! npm run build stderr: sh: 1: webpack: not found

mainframe_4

mosic commented 5 years ago

It might be because of your step 6, so there's now a conflict with what yarn build is trying to do. Can you try deleting the whole directory and cloning the repo again?

Robsonsjre commented 5 years ago

that was already a new one, hehe

Robsonsjre commented 5 years ago

Well, solved with an ugly workaround: I copied /packages/app-manifest and /packages/app-permissions to /packages/cli/node_modules/@mainframe

Robsonsjre commented 5 years ago

Found a better solution for this issue and the #379: after yarn install and before yarn build, just do a yarn bootstrap and lerna will handle all dependencies!