Skip to content

Issue with the fret-install script #145

@oisinsheridan

Description

@oisinsheridan

I have come across a strange problem with the fret-install script after pulling the newest version (both for main FRET and merging the updates into the Mu-FRET fork). When I try to run 'npm run fret-install', it crashes out with a "no such file or directory" error (see below):

Image

However, it installs correctly if I manually run each command in sequence, i.e. running

  1. npm run clean
  2. npm install
  3. npm --prefix ../tools/LTLSIM/ltlsim-core install ../tools/LTLSIM/ltlsim-core && npm run build

I tried fixing this by changing the fret-install script to use '&&' after clean instead of ';' , as shown below.
Image

That does work to get past that crash, but then it crashes once it gets to the LTLSIM installation with this message about "native dependencies". Somehow, running 'npm --prefix ../tools/LTLSIM/ltlsim-core install ../tools/LTLSIM/ltlsim-core && npm run build' after this point works fine.
Image

I'm not really sure how this problem is coming about; maybe it's because I'm on Windows and I'm still using Cygwin rather than WSL?

Also, as a somewhat related issue, if you try to re-install FRET after already installing, it will crash at the installation of LTLSIM. Seemingly, this is because of the version number being "3.0" instead of "3.0.0"; I think this is because of the LTLSIM package-lock.json file getting re-generated during installation.

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions