Regarding the problem of using webpack instructions in vscode showing "Because running scripts is prohibited in this system" (perfect solution)

Regarding the problem of using webpack instructions in vscode showing "Because running scripts is prohibited in this system" (perfect solution)

When learning Vue, when I always use webpack instructions in the vscode terminal, the following problems occur:

The solution is:

1. Close vscode and restart vscode as an administrator; 2. Enter get-ExecutionPolicy in the terminal, and it will display Restricted, indicating that the status is prohibited; 3. Enter set-ExecutionPolicy RemoteSigned again; no content is displayed after execution; 4. Finally, enter get-ExecutionPolicy again, and it will display RemoteSigned;

The process is shown in the figure below:

Then enter the webpack command again and it will execute normally:

Take one more minute to study and make your life more wonderful!

This is the end of this article about solving the problem of "Because running scripts is prohibited in this system" when using webpack instructions in vscode. For more relevant content about using webpack instructions in vscode, please search for previous articles on 123WORDPRESS.COM or continue to browse the following related articles. I hope everyone will support 123WORDPRESS.COM in the future!

You may also be interested in:
  • Detailed explanation of adding code blocks in VScode (including C++ instructions to generate code)

<<:  A simple method to regularly delete expired data records in MySQL

>>:  Detailed installation and use tutorial of mysql 8.0.15 under windows

Recommend

Negative distance (empathy) - iterative process of mutual influence

Negative distance refers to empathy. Preface (rai...

Detailed explanation of zabbix executing scripts or instructions on remote hosts

Scenario Requirements 1. We can use the script fu...

Vue development tree structure components (component recursion)

This article example shares the specific code of ...

Two ways to create SSH server aliases in Linux

Preface If you frequently access many different r...

Install and configure ssh in CentOS7

1. Install openssh-server yum install -y openssl ...

Use pure JS to achieve the secondary menu effect

This article example shares the specific code of ...

Detailed explanation and examples of database account password encryption

Detailed explanation and examples of database acc...

Detailed process of implementing the 2048 mini game in WeChat applet

Rendering Example Code Today we are going to use ...

Tutorial on installing mysql5.7.18 on windows10

This tutorial shares the installation and configu...

Docker View Process, Memory, and Cup Consumption

Docker view process, memory, cup consumption Star...

Example code for implementing the wavy water ball effect using CSS

Today I learned a new CSS special effect, the wav...

Native js imitates mobile phone pull-down refresh

This article shares the specific code of js imita...

CSS pseudo-class: empty makes me shine (example code)

Anyone who has read my articles recently knows th...

Detailed Example of MySQL InnoDB Locking Mechanism

1. InnoDB locking mechanism The InnoDB storage en...