I am working through the place-my-order guide.
When I start the donejs develop server, I get the following error: (although it does run) (took out all http protocols in order to publish this post)
can-serve starting on localhost:8080
Received client connection
Live-reload server listening on port 8012
events.js:142
throw er; // Unhandled ‘error’ event
^
Error: watch /home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/steal/ext/npm.js ENOSPC
at exports._errnoException (util.js:856:11)
at FSWatcher.start (fs.js:1314:19)
at Object.fs.watch (fs.js:1342:11)
at createFsWatchInstance (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/chokidar/lib/nodefs-handler.js:37:15)
at setFsWatchListener (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/chokidar/lib/nodefs-handler.js:80:15)
at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/chokidar/lib/nodefs-handler.js:228:14)
at FSWatcher.NodeFsHandler._handleFile (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/chokidar/lib/nodefs-handler.js:255:21)
at FSWatcher. (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/chokidar/lib/nodefs-handler.js:473:21)
at FSReqWrap.oncomplete (fs.js:83:15)
Then after I added the supermodel and refreshed, it crashes the server and I get the following:
/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/http-proxy/lib/http-proxy/index.js:119
throw err;
^
Error: connect ECONNREFUSED 127.0.0.1:7070
at Object.exports._errnoException (util.js:856:11)
at exports._exceptionWithHostPort (util.js:879:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1064:14)
npm ERR! Linux 3.13.0-74-generic
npm ERR! argv “/usr/local/bin/node” “/usr/local/bin/npm” “run” “develop”
npm ERR! node v5.2.0
npm ERR! npm v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! place-my-order@0.0.0 develop: can-serve --develop --proxy localhost:7070 --port 8080
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the place-my-order@0.0.0 develop script ‘can-serve --develop --proxy localhost:7070 --port 8080’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the place-my-order package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! can-serve --develop --proxy localhost:7070 --port 8080
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs place-my-order
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls place-my-order
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/dovid/mm_workspace/DoneJS Examples/place-my-order/npm-debug.log
Error: Command npm did not complete successfully
at ChildProcess. (/home/dovid/mm_workspace/DoneJS Examples/place-my-order/node_modules/donejs-cli/lib/utils.js:37:23)
at emitTwo (events.js:88:13)
at ChildProcess.emit (events.js:173:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:12)
I can also send the npm-debug.log if that will help.
This looks like a NodeJS watch error, potentially a permission issue. What operating system are you using (it looks like Linux)? The second error is probably because the old server is still running even though it crashed.
ah, no. it wasn’t. But when I tried it said, “not found.” And when I tried to reinstall it, I got a whole long list of errors. So basically the install didn’t work. Here is the beginning of the errors I got:
loadDep:madison → 304 ▌ ╢█████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░╟
npm WARN deprecated lodash@0.9.2: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
npm WARN deprecated lodash@1.0.1: lodash@<2.0.0 is no longer maintained. Upgrade to lodash@^3.0.0
Ok, couple of things. If you are using the guide you are likely using donejs 0.5 which does not support Node 4/5. See http://donejs.com/SettingUp.html for the version requirements. donejs 0.6.0 will come out this week with support for Node 4/5, you can try out the pre-release by running npm install donejs@0.6.0-pre.1.
After your bufferutil errors, these errors don’t mean that the install failed. They are for an optionalDependency that is not actually required. We are working to get rid of the modules which cause these errors as I know it is confusing to see errors, naturally you would think that it failed.
So either try with 0.6.0-pre.1 or install Node 0.12 and let us know.
well I tried installing 0.6.0-pre.1 and I got a bunch of seeming errors, but I could run donejs api. However it started spewing out node processes until it nearly crashed my computer.
So, I tried removing donejs, nodejs, api and starting over with nodejs 0.12 like in your SettingUp guide.
When I tried to install the api, again I got a bunch of errors. And again when I started up donejs api, it just kept creating new node processes until I killed it.
npm WARN optional Skipping failed optional dependency /chokidar/fsevents:
npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.6
npm WARN place-my-order@0.0.0 No description
npm WARN place-my-order@0.0.0 No repository field.
npm WARN place-my-order@0.0.0 No license field.
it seems to still be trying to use node 5, and when I node -v it says 5.2.0 (nodejs -v is 0.12) but when I try sudo apt-get remove node, it says it isn’t installed. So I am now somewhat confused.