diff options
author | cyrbon <code.cyrbon@gmail.com> | 2017-02-25 20:35:45 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-02-25 20:35:45 +0200 |
commit | be05a0550905c1c6b993af72bd511b6dbe73101d (patch) | |
tree | bb14238b29fa6856a03f30464409589a8a7ab196 | |
parent | ab9442851ea3f003063f7ead8fc566f808391460 (diff) | |
download | purs-loader-be05a0550905c1c6b993af72bd511b6dbe73101d.tar.gz purs-loader-be05a0550905c1c6b993af72bd511b6dbe73101d.tar.zst purs-loader-be05a0550905c1c6b993af72bd511b6dbe73101d.zip |
Rephrase troubleshoting "Error `spawn ENOENT`"
-rw-r--r-- | README.md | 14 |
1 files changed, 7 insertions, 7 deletions
@@ -121,15 +121,15 @@ const webpackConfig = { | |||
121 | 121 | ||
122 | This is caused when the loader tries to spawn a binary that does not exists | 122 | This is caused when the loader tries to spawn a binary that does not exists |
123 | (`file or directory not found`). If you call webpack like `webpack` or | 123 | (`file or directory not found`). If you call webpack like `webpack` or |
124 | `webpack --watch`, then you need to ensure that all required binaries that the | 124 | `webpack --watch`, then ensure that all required binaries that the |
125 | loader depends on are available in your `$PATH`. | 125 | loader depends on are available in your `$PATH`. |
126 | 126 | ||
127 | If you use `npm run` and `npm start` on NixOS, then it will first attempt to find | 127 | If you run webpack through an npm script (e.g., npm run or npm start) on NixOS, |
128 | binaries in `node_packages/.bin`. If you have the compiler installed through `npm` | 128 | then it will first attempt to find binaries in `node_packages/.bin`. |
129 | and it finds it there, this will cause `ENOENT`on Nix, because | 129 | If you have the compiler installed through `npm` and it finds it there, this will |
130 | [the binary needs to be patched first, because npm will install the binary that is | 130 | cause `ENOENT`on Nix, because [the binary needs to be patched first, but npm will |
131 | linked with /lib64/ld-linux-x86-64.so.2 - a file that will not exist at that path in | 131 | install the binary that is linked with /lib64/ld-linux-x86-64.so.2 - a file that |
132 | NixOS](https://github.com/ethul/purescript-webpack-example/issues/5#issuecomment-282492131). | 132 | will not exist at that path in NixOS](https://github.com/ethul/purescript-webpack-example/issues/5#issuecomment-282492131). |
133 | The solution is to simply use the compiler from `haskellPackages.purescript` and | 133 | The solution is to simply use the compiler from `haskellPackages.purescript` and |
134 | make sure that it's available in `$PATH`. For more information about how to make | 134 | make sure that it's available in `$PATH`. For more information about how to make |
135 | it work on Nix, see [Purescript Webpack Example](https://github.com/ethul/purescript-webpack-example#using-globally-installed-binaries) | 135 | it work on Nix, see [Purescript Webpack Example](https://github.com/ethul/purescript-webpack-example#using-globally-installed-binaries) |