Comments (6)
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.
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.
Can anyone provide a PR? I don't have a Windows environment to figure this out in...
from pulp.
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.
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.
I think that should be an acceptable solution.
from pulp.
Related Issues (20)
- Building dependencies only or first HOT 1
- is there a way to build only dependencies? HOT 1
- Allow pulp init with superuser access
- Unable to run pulp init using volta which shims purs into my path HOT 11
- Lua backend HOT 1
- psc-package asks for bower.json OR psc-package.json and then requires bower.json anyway HOT 2
- Have trouble to specify license to run `pulp version` HOT 3
- Dead link in README.md (using npm as your build tool)
- Pulp test no longer seems to work with purs 0.13.8 HOT 5
- Suggest Spago in README
- `pulp publish` doesn't support --dry-run HOT 2
- Add support for publishing to the PureScript registry
- Add support for upcoming 0.15.0 PureScript release
- Remove bower re-install code in `integration.js` HOT 1
- Determine how bundling works with PureScript v0.15.0 version HOT 2
- Versioning confusion HOT 5
- Fix the documentation on releasing packages HOT 4
- Drop the `devDependencies` check when publishing on PureScript `0.15.2` or greater
- `pulp publish` fails for large bower resolution file
- How can I get the docs generator to just generate docs for my files HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pulp.