Getting error on the command "Parcel index.html"

Hey everyone,

Guys need your help

I got stuck on running index.html with parcel.

when i hit “parcel index.html” I’m getting the following error:

PS D:\coding\Moshify> parcel index.html
parcel : Unable to upload file C:\Users\Orazbek\AppData\Roaming\npm\parcel.ps1, because scripting is disabled on this system.
For more information see about_Execution_Policies at https:/go.microsoft.com/fwlink/?LinkID=135170.
string:1 character:1

  • parcel index.html
  • + CategoryInfo          : security bug: (:) [], PSSecurityException
    + FullyQualifiedErrorId : UnauthorizedAccess
    

Hi,

You need to change the execution policy on your system.
There may be an alternate option being creating something like signing your script but I never did it myself.

Check the docs @MSDN for the Set-ExecutionPolicy commandlet.

EDIT:

For signing scripts.

1 Like

thank you bro !! I’ve got the solution…

1 Like

As for the Parcel Building, I’ve solved the issue, now when I try to publish on Netlify, I’m getting the error that you see on the screenshot. Can’t understand what I have to do change in the normalize.css and what’s the issue with that.

Have you got any idei on how to get over it ?
thanks

1 Like

It seems like your normalize.css is not present in the build folder.

Do you have that file in your project folder? What is the path to that file?

Actually I do have that normalize.css in the folder CSS. Unfortunately I don’t know what to do here, I’ve tried a lot of actions, but the same error

It is likely happening because on Linux (which Netlify seems to be using), file and folder names are case-sensitive.

You have to rename your “CSS” to “css”, and maybe also “Images” to “images” and so on. Try with renaming the CSS folder first, and see that all references are updated in the files too.

1 Like

Had the same problem 10 min ago. Follow the instruction by sufian. Make sure the link in index.html file is correct. I named the folder CSS as well and the link should be CSS/styles.css.

It works! Thank you!