vue project move one position npm run dev on the error (novice into)

After we set up a good environment VUE project, feel bad storage location of the project, want to move about, but we found that after the implementation of mobile npm run dev will report the following error:

Obviously just move a bit position on the error, it is too disgusting.

But if we carefully look at the error: then go node_modules folder to find this package, you will find this package like this

We found that: This is just a shortcut, simply not we downloaded module

If only one is the case, we directly use the npm install semver OK, but unfortunately, this is not a thing but a few hundred :

 

 

Speechless ... we can not all one by one manually npm install it, there is a situation, if it is how do non-network environment? Simply can not use npm install! ! !

But online there is no solution to this problem, it may be because the problem is too simple, right. There are some tutorials we need to build a npm PW , but in pure no network environment, this approach is not so good.

I think the best way is: will these fake module into the real module, and then package the project, unzip to run

Solution:

Step one: delete your node_modules folder;
Step two: Never, never, never use npm install cnpm install or download all of the command module!
Step 3: npm or a download package.json cnpm a dependent package, though stupid way, but real and effective!

Guess you like

Origin www.cnblogs.com/wlovet/p/12067687.html