Moralis-admin-cli

Hi all,
I installed Moralis-admin-cli like Filip showed in https://youtu.be/tBMk1iZa85Y?t=1813
and after running: “moralis-admin-cli deploy” in Terminal, I had such an error:
"moralis-admin-cli : File C:\Users\pajak\AppData\Roaming\npm\moralis-admin-cli.ps1 cannot be loaded because running scripts is disabled on this syst
em. For more information, see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
At line:1 char:1

  • moralis-admin-cli deploy
  •   + CategoryInfo          : SecurityError: (:) [], PSSecurityException
      + FullyQualifiedErrorId : UnauthorizedAccess"
    

What I did wrong?

Might be that powershell is blocked to execute scripts. You can also try with CMD (windows command prompt)

Carlos Z

1 Like

Could you help me to navigate through to certain folder?

Why powershell might be blocked?
And to unblock it?

It might be faster to check a tutorial on it, there are plenty of them on google and youtube, there are some basic commands on cmd that you need to know to navigate over the folders.

https://www.youtube.com/watch?v=cTIilDTaTs0

Carlos Z

I found a video that show how to open from a folder and it helped me :https://www.youtube.com/watch?v=bgSSJQolR0E.
I will check the video you gave me link too for deeper knowledge.
Thank you.

I am stuck at the moment:
I opened the site that shows on cmd and the is nothing - only black screen
Filip had “hello :)”
This is the address:
https://jbjvouh8ote0.moralishost.com
and if i put the name of my Photo the is an error
address:
https://jbjvouh8ote0.moralishost.com/Create.jpg
any suggestion

Hey @Kacper, hope you are well.

Could you also share the code you are trying to run with the node instance??

Also which video are you following from filip?

Carlos Z

My bad, I mean that:Moralis-admin-cli
My code:
index.html:

<html>
nothing needed here
</html>

0.json:

{
    image:"https://jbjvouh8ote0.moralishost.com/Mouse.png";
    description: "Artwork presenting most important succes key.";
    name:"First step";
} 

1.json:

{
    image:"https://jbjvouh8ote0.moralishost.com/c.jpg";
    description: "Photo of beach in Create in 2020";
    name:"Create photo";
} 

And now suddenly it works.
Index.html wasn’t work and now it does - I do not know why so.
1.json wasn’t work and now it does - I think it didn’t because I change the link in IDE.