Fork me on GitHub
#lein-figwheel
<
2020-07-08
>
kennytilton03:07:18

I am trying to create a figwheel project (for the first time in ages) to run under IntelliJ with Cursive and following the instructions there. I failed pretty quickly on the npm install: gyp ERR! configure error  gyp ERR! stack Error: gyp failed with exit code: 1 gyp ERR! stack   at ChildProcess.onCpExit (/Users/kennethtilton/.nvm/versions/node/v7.10.1/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:308:16) gyp ERR! stack   at emitTwo (events.js:106:13) gyp ERR! stack   at ChildProcess.emit (events.js:194:7) gyp ERR! stack   at Process.ChildProcess.handle.onexit (internal/childprocess.js:215:12) gyp ERR! System Darwin 18.7.0 gyp ERR! command “/Users/kennethtilton/.nvm/versions/node/v7.10.1/bin/node” “/Users/kennethtilton/.nvm/versions/node/v7.10.1/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js” “rebuild” gyp ERR! cwd /Users/kennethtilton/jammo/node_modules/fsevents gyp ERR! node -v v7.10.1 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok  npm WARN jammo No repository field. npm WARN jammo No license field. npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/fsevents): npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node-gyp rebuild npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1

kennytilton03:07:14

It says “optional”. Should I just ignore this, or start googling node-gyp? 🙂 My npm --version is 4.2.0, and npm update finds nothing to do. Any suggestions?🙏

kennytilton10:07:35

I ignored it and continued with the rest of the directions, all seems well. 🎉 But will this eventually bite me?

bhauman14:07:07

@U0PUGPSFR I don’t know, it seems like there is something up with your node install. nothing wrong with using nvm to install a new version the latest stable version is 12 something

bhauman14:07:43

@U0PUGPSFR also you can create a template that doesn’t use npm

bhauman14:07:38

via the +no-bundle option when using the lein figwheel template

kennytilton14:07:50

Thx, @U064J0EFR! Not using npm sounds like heaven. Me and node do not get along! I will start over with +no-bundle. 🙏

👍 3
bhauman14:07:53

@U0PUGPSFR also you may want to try out figwheel-main …

bhauman14:07:04

there’s a lot more development time in it

bhauman14:07:25

but lein figwheel still works for sure

kennytilton15:07:41

Ah, yes, figwheel-main, it is all coming back to me. Thx again!

kennytilton17:07:34

Hmm, so I was whining about none of the music repos offering examples when I noticed further down on the cljs-bach readme that I could run an example that ships with it. This still looks like it might be a figwheel issue:

Exception in thread "main" java.io.FileNotFoundException: Could not locate clojure/tools/nrepl/middleware/interruptible_eval__init.class or clojure/tools/nrepl/middleware/interruptible_eval.clj on classpath. Please check that namespaces with dashes use underscores in the Clojure file name., compiling:(figwheel_sidecar/repl.clj:1:1)

kennytilton17:07:52

This looks like a not recently maintained repo. Is this just bit rot? I did do lein deps first and that ended without complaint.

bhauman17:07:58

seems like the example is just running an old version of figwheel?

bhauman17:07:14

that is incompatible with your lein

kennytilton17:07:04

OK, thx. I will just examine the source of the example, that should get me going. Thx! 🙏