Error handling when building vue-cli

“Webpack-dev-server is not an internal or external command, nor is it a runnable program or batch file” that recently appeared when using vue-cli to build directories After looking up a lot of data and solutions on the Internet, the path that should be an environment variable does not read NPM in combination with its own situation. False report   The solution is to find the NPM directory and add it to the environment variable path. OK!Perfect solution!!!  

The number of integer 1

Title Description Figure out the number of times in 1 of 1~13’s integer, and figure out the number of 1 in 100~1300’s integer. For this reason, he counted the number of 1 in the range of 1 to 13 in particular, 1, 10, 11, 12, 13, so there were six times, but for the latter problem he had no choice. ACMerI hope you can help him, and generalize the problem, you can quickly find out the number of occurrences of 1 in any nonnegative integer interval (from 1 to 1 in n). thinking Why suddenly thought of a very indecent way. But it is time-consuming. Traversing the number from 1 to N, tu...

<> Chapter 3:Char Drivers

The Internal Representation of Device Numbers Within the kernel,the dev_t type(defined in linux/types.h ) is used to hold device numbers—both the major and minor parts. it should,instead,make use of a set of macros found in linux/kdev_t.h.To obtain the major or minor parts of a dev_t,use: MAJOR(dev_t dev); MINOR(dev_t dev); If,instead,you have the major and minor numbers and need to turn them into a dev_t,use: MKDEV(int major,int minor); Allocating and Freeing Device Numbers one of the first things your driver will need to do when setting up a char device is to obtain one or more device...

p1302

Start school! I started a hard life, and I didn’t have enough vacation. Let’s watch the problem. Sample input Sample Input6 10 20 25 40 30 30 4 5 1 3 3 4 2 3 6 4 Sample output Sample Output90 DP on a normal tree. Why is it a tree? The title is very clear, n nodes n-1 edges, each point has edges, not the tree can be what? Why is DP? If I know the data of the sub-nodes, I can calculate the data of this node in a very short time, and the data of the leaf node is very good. Why DP? This problem is a bit of aftereffect, choose or not will affect the selection of the parent node, the...

BZOJ2326 HNOI2011 mathematical operations (matrix fast power)

  Considering violence, then there is f (n) = (f (n-1) *10).digit+n)%m。Note that each shift is similar, taking into account the fast power of the matrix. First of all, we separate the number of digits separately, obviously it is only log. Then we get the recurrence formula of F (n) =a. F (n-1) +b, and we can get the fast power of matrix. Notice that the B here is changing, but every time it changes.The same volume, adding one dimension to the matrix is fine. #include<iostream> #include<cstdio> #include<cmath> #include<cstdlib> #include<cstring> #include&l...

The number of occurrences in arrays is more than half.

Title Description One number in the array appears more than half of the length of the array. Please figure out this number. For example, enter an array of length 9 {1,2,3,2,2,2,5,4,2}. As the number 2 appears in the array 5 times, more than half of the array length, so output 2. If it does not existThe output is 0. thinking Similar to the previous several problem arrays and strings, it uses python’s count counting method, or the Counter method of the collection module. Answer Method 1 class Solution: def MoreThanHalfNum_Solution(self, numbers): # write code here fo...