makerboard icon indicating copy to clipboard operation
makerboard copied to clipboard

Failed to run create command

Open alwint3r opened this issue 8 years ago • 6 comments

Hi,

I encountered this error when running command: makerboard create my7688 And here's the error stack:

fs.js:844
  return binding.stat(pathModule._makeLong(path));
                 ^

Error: ENOENT: no such file or directory, stat '/usr/lib/node_modules/makerboard/data'
    at Error (native)
    at Object.fs.statSync (fs.js:844:18)
    at ClientRequest.<anonymous> (/usr/lib/node_modules/makerboard/lib/downloader.js:31:18)
    at ClientRequest.g (events.js:260:16)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:430:21)
    at HTTPParser.parserOnHeadersComplete (_http_common.js:103:23)
    at TLSSocket.socketOnData (_http_client.js:320:20)
    at emitOne (events.js:77:13)

I am using elementary os freya (ubuntu 14.04) and have npm v3.10, node v4.4.7, and qemu utility installed.

Thanks

alwint3r avatar Jul 21 '16 04:07 alwint3r

Did you install the npm package globally using the -g flag?

joerg-krause avatar Jul 26 '16 16:07 joerg-krause

Yes, i got this output after running npm ls -g --depth=0 | grep makerboard command:

├── [email protected]

alwint3r avatar Jul 27 '16 06:07 alwint3r

Does your npm install the global packages into /usr/lib/node_modules? Can you check with: ls -l /usr/lib/node_modules.

joerg-krause avatar Jul 27 '16 07:07 joerg-krause

Yes, the package is there. Here's the output that's piped to grep makerboard:

drwxr-xr-x  8 nobody dycode 4096 Jul 21 10:20 makerboard

alwint3r avatar Jul 27 '16 09:07 alwint3r

I tried this before npm install

sudo chown -R $USER /usr/local/lib/node_modules

And it works.!

popk avatar Dec 25 '19 11:12 popk

Created a blank folder named "data" in the "makerboard" directory. Worked fine after that.

RyanM19920 avatar Jan 30 '20 18:01 RyanM19920