-
Notifications
You must be signed in to change notification settings - Fork 134
Closed
Labels
Description
I just did the following:
- installed purescript and spago via npm
- created a folder
/Users/nathaniel/Code/purescript learning/test-project-1and cd'd into it - ran
spago init - ran
spago build - ran
spago test
I was surprised to get the following error:
[info] Build succeeded.
internal/modules/cjs/loader.js:905
throw err;
^
Error: Cannot find module '/Users/nathaniel/Code/purescript'
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:902:15)
at Function.Module._load (internal/modules/cjs/loader.js:746:27)
at Function.executeUserEntryPoint [as runMain] (internal/modules/run_main.js:76:12)
at internal/main/run_main_module.js:17:47 {
code: 'MODULE_NOT_FOUND',
requireStack: []
}
[error] Tests failed: exit code: 1
but I guessed correctly that the problem was the space in the name of the enclosing folder. Changing its name from purescript learning to purescript-learning gives the expected result, i.e. it reports success.
This is only a minor inconvenience, but it seems a bit silly to fail due to spaces in a filename.
Reactions are currently unavailable