6

Zapier-platform-cli init Error! ENOENT: no file or directory of this type

 3 years ago
source link: https://www.codesd.com/item/zapier-platform-cli-init-error-enoent-no-file-or-directory-of-this-type.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Zapier-platform-cli init Error! ENOENT: no file or directory of this type

advertisements

Just starting with a Zapier Integration development using zapier-platform-cli, though after a simple zapier init zapp I am getting the following output:

Error! ENOENT: no such file or directory, open C:\Users\USERNAME:\Users\username1\AppData\Local\Temp\tmp-286764LYpWKGFgiNI\zapier-template.zip'

It seems that the command is trying to access a wrong path. I am using Windows 7 and this seems to be a reported/open issue in the repository zapier-platform-cli issue.

So, just trying to know if someone has any thoughts or idea on how to fix this.


It was a problem with the TMP Environment variable.

I have solved the problem setting up the variable to C:\Users\USERNAME\AppData\Local\Temp

Also, I did the same to TEMP variable as it is used instead of TMP in some situations.

As I am using Powershell I have made it permanent by adding to my Powershell profile (C:\Users\USERNAME\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1) the following lines:

[Environment]::SetEnvironmentVariable("TEMP", "C:\Users\USERNAME\AppData\Local\Temp")
[Environment]::SetEnvironmentVariable("TMP", "C:\Users\USERNAME\AppData\Local\Temp")


Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK