[Vue] reference files or components

A, Vue in import from the source: the suffix is ​​omitted and loading folders

https://blog.csdn.net/fyyyr/article/details/83657828

 

Two, Vue mounted reliance

# Mounted reliance 
npm install [component name] - Save 
# unloading dependent 
npm uninstall [component name] - Save 
# mounted reliance 
npm install [component name] --save- dev 
# unloaded dependent 
npm uninstall [component name] --save - dev

 - the Save dependencies [is] in package.json inside the

 --save-dev in package.json] inside the [devDependencies

 

example:

The following tips when npm install

npm WARN @mtfe/thrift@2.3.7 requires a peer of thrift@0.11.0 but none is installed. You must install peer dependencies yourself.

Prompted to install [email protected], execute the following command

npm install thrift@0.11.0

 

Guess you like

Origin www.cnblogs.com/shangxiaofei/p/11128839.html