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

Nginx external network access intranet site configuration operation

background: The site is separated from the front ...

Problems with using wangeditor rich text editing in Vue

wangEditor is a web rich text editor developed ba...

JavaScript implements AI tic-tac-toe game through the maximum and minimum algorithm

Without further ado, let’s run the screenshot dir...

Parsing Linux source code epoll

Table of contents 1. Introduction 2. Simple epoll...

How to quickly modify the table structure of MySQL table

Quickly modify the table structure of a MySQL tab...

How to import Tomcat source code into idea

Table of contents 1. Download the tomcat code 2. ...

Steps to build the vite+vue3+element-plus project

Use vite to build a vue3 project You can quickly ...

Detailed examples of replace and replace into in MySQL into_Mysql

MySQL replace and replace into are both frequentl...

How to solve the problem that MySQL cannot start because it cannot create PID

Problem Description The MySQL startup error messa...

How to configure VMware virtual machine NAT mode

This article describes the VMware virtual machine...

How to build pptpd service in Alibaba Cloud Ubuntu 16.04

1. To build a PPTP VPN, you need to open port 172...

Negative distance (empathy) - iterative process of mutual influence

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

Script example for starting and stopping spring boot projects in Linux

There are three ways to start a springboot projec...