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: fsevents@2.1.3 (node_modules/fsevents):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.1.3 install: node-gyp rebuild
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
I ignored it and continued with the rest of the directions, all seems well. 🎉 But will this eventually bite me?
@hiskennyness 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
@hiskennyness also you can create a template that doesn’t use npm
via the +no-bundle option when using the lein figwheel template
Thx, @bhauman! Not using npm sounds like heaven. Me and node do not get along! I will start over with +no-bundle. 🙏
@hiskennyness also you may want to try out figwheel-main …
there’s a lot more development time in it
but lein figwheel still works for sure
Ah, yes, figwheel-main, it is all coming back to me. Thx again!
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?🙏
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)
This looks like a not recently maintained repo. Is this just bit rot? I did do lein deps
first and that ended without complaint.
seems like the example is just running an old version of figwheel?
that is incompatible with your lein
OK, thx. I will just examine the source of the example, that should get me going. Thx! 🙏