Giter Site home page Giter Site logo

Comments (6)

stkb avatar stkb commented on September 26, 2024

Have this error too, since switching from the cabal installation of purescript to the npm package.

The problem is, on Windows, with the npm installation, psc.exe doesn't exist on the path, only psc.cmd. The child_process.spawn("psc", ...) code in pulp looks for a file named 'psc' (psc.exe would work), but it doesn't exist, meaning none of pulp works.

Using child_process.exec() would work though then you have to build the compete command string yourself.

from pulp.

maiermic avatar maiermic commented on September 26, 2024

I've this error as well on Windows with npm package of purescript.

Executables can be found in %APPDATA%\Roaming\npm\node_modules\purescript\vendor\. I copied them to %APPDATA%\Roaming\npm\ to fix this error on my PC.

from pulp.

bodil avatar bodil commented on September 26, 2024

Can anyone provide a PR? I don't have a Windows environment to figure this out in...

from pulp.

maiermic avatar maiermic commented on September 26, 2024

cabal only adds executables (e.g. psc.exe) and npm batch files with extension cmd (e.g. psc.cmd). Any idea how to check which file is available?

from pulp.

stkb avatar stkb commented on September 26, 2024

I'd already worked on a fix for this, so can submit a PR. It's not very pretty, basically tries to execute psc and then if that's not found, tries psc.cmd

from pulp.

bodil avatar bodil commented on September 26, 2024

I think that should be an acceptable solution.

from pulp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.