<Packages not working> Error: ENOENT: no such file or directory, mkdir


#1

I have used Atom a tiny bit before. I came back to it a couple months later and packages didn’t work. I deleted the .atom folder and reinstalled. It still doesn’t work. I get this when I try to install packages.

Installing “activate-power-mode@1.0.2” failed.Hide output…
INFO: Could not find files for the given pattern(s).

The system cannot find the file specified.

fs.js:794
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: ENOENT: no such file or directory, mkdir 'C:\Users\<Username>\AppData\Local\atom\app-1.11.1\;c:\ffmpeg\bin\d-116915-7684-shvz5c'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:794:18)
    at Object.mkdirSync (C:\Users\<Username>\AppData\Local\atom\app-1.11.1\resources\app\apm\node_modules\temp\lib\temp.js:137:6)
    at Request.<anonymous> (C:\Users\<Username>\AppData\Local\atom\app-1.11.1\resources\app\apm\lib\install.js:332:41)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Request.onRequestResponse (C:\Users\<Username>\AppData\Local\atom\app-1.11.1\resources\app\apm\node_modules\request\request.js:954:10)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:430:21)

Thanks in advance.


Can't Install Packages (specifically Hydrogen)
Please help, I cannot install packages
Help with installing packages
Help with installing packages
#2

What happens when you invoke atom from the command line? What about apm install activate-power-mode?


#3

atom just opens atom so I guess that works. apm install activate-power-mode just spits out the same error. Other packages I tried to install didn’t show the error line as a message but did when I tried from the command prompt.


#4

I honestly don’t know what the problem is, so I’m shotgunning questions in order to get you to look in the places where clues to the answer might be. Do you have git installed? In C:\Users\<Username>\AppData\Local\atom\bin, what does apm.cmd point at? Can you navigate into C:\Users\<Username>\AppData\Local\atom\app-1.11.1\resources\app\apm\bin and invoke that specific apm.cmd file?


#7

found a fix not sure why this broke with newer version of Atom and APM.

Go into system paths and reset TMP and TEMP to %USERPROFILE%\AppData\Local\Temp

or change it to an entirely different path.


#8

And how might I do that?


#9

there you go, set the two user variables TMP and TEMP


#10

I still get the same error message. I believe I created another problem by messing around with it before. I installed the GitHub app and started using it now an operation_log.txt file gets created in my repo. Not sure if this is a GitHub only problem.

[8408:7812:1112/194749:VERBOSE1:crash_service_main.cc(76)] Session start. cmdline is [--reporter-url=https://crashreporter.atom.io --application-name=Atom --v=1] [8408:7812:1112/194749:VERBOSE1:crash_service.cc(142)] window handle is 00140514 [8408:7812:1112/194749:VERBOSE1:crash_service.cc(284)] pipe name is \\.\pipe\Atom Crash Service dumps at [8408:7812:1112/194749:VERBOSE1:crash_service.cc(288)] checkpoint is crash_checkpoint.txt server is https://crashreporter.atom.io maximum 128 reports/day reporter is electron-crash-service [8408:7812:1112/194749:VERBOSE1:crash_service_main.cc(92)] Ready to process crash requests [8408:1180:1112/194749:VERBOSE1:crash_service.cc(317)] client start. pid = 792 [8408:1180:1112/194749:VERBOSE1:crash_service.cc(317)] client start. pid = 10628 [11164:32:1112/194749:VERBOSE1:crash_service_main.cc(76)] Session start. cmdline is [--reporter-url=https://crashreporter.atom.io --application-name=Atom --v=1] [11164:32:1112/194749:VERBOSE1:crash_service.cc(142)] window handle is 001704CC [11164:32:1112/194749:VERBOSE1:crash_service.cc(284)] pipe name is \\.\pipe\Atom Crash Service dumps at [11164:32:1112/194749:VERBOSE1:crash_service.cc(288)] checkpoint is crash_checkpoint.txt server is https://crashreporter.atom.io maximum 128 reports/day reporter is electron-crash-service [11164:32:1112/194749:ERROR:crash_service.cc(295)] could not start dumper


#11

Everything seems to be working now! Thanks @DamnedScholar and @nocturnal336 :smiley:


#12

How did you solve it? I’m having the same problem and changing the temp/tmp didn’t help me either


#13

What error are you seeing?


#14

same as @Webhobo’s, but I’ll post it here as well

apm install activate-power-mode
Installing activate-power-mode to C:\Users\USER\.atom\packages fs.js:794
  return binding.mkdir(pathModule._makeLong(path),
                 ^

Error: ENOENT: no such file or directory, mkdir 'C:\Users\USER\AppData\Local\Temp;C:\ffmpeg\bin\d-116119-15100-1fs9omz'
    at Error (native)
    at Object.fs.mkdirSync (fs.js:794:18)
    at Object.mkdirSync (C:\Users\USER\AppData\Local\atom\app-1.12.7\resources\app\apm\node_modules\temp\lib\temp.js:137:6)
    at Request.<anonymous> (C:\Users\USER\AppData\Local\atom\app-1.12.7\resources\app\apm\lib\install.js:332:41)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Request.onRequestResponse (C:\Users\USER\AppData\Local\atom\app-1.12.7\resources\app\apm\node_modules\request\request.js:986:10)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at HTTPParser.parserOnIncomingClient [as onIncoming] (_http_client.js:430:21)

annd that’s it. Is there anything else you’d like to see?


#15

I meant to @DamnedScholar whoops. Cant seem to edit my posts either


#16

Hello. I am having the same problem. It does not work although changed the tmp/temp in both user variable and system variable.


#17

And I still don’t know why it fails in this way for some people.