node version update

After 1, cmd to open a command window, windows key + R, type cmd confirm, open cmd window, enter the node -v command to view the current version of nodejs
2, if the version of the above view is relatively low, you can start the upgrade
Clear npm Cache
3, before upgrading also need to install the module n, n module is designed to manage versions of nodejs
enter the -gn install npm
4, if npm ERR appears notsup Unsupported platfor ... npm ERR notsup Valid OS:!!! win32 so wrong information, you can add --force command followed by
5, if you want to upgrade to a specific version, you can use the n 6.11.2 to upgrade
6, you can also enter directly n stable, upgrade to the latest stable version nodejs

 

1, install the plug

npm install --save qrcode

2, uninstall the plug

npm uninstall qrcode

 

# Global install-cli VUE 
$ CNPM install - , Ltd. Free Join VUE - cli # Create a new project based on a template webpack of $ VUE the init webpack My - Project # here requires some configuration, press Enter to default This by Will install Vue 2.x of at The Version Template . the For Vue 1.x use : VUE the init WebPACK # 1.0 My-Project ? Project name My - Project ? Project the Description A Vue . JS Project ? Author runoob <          test@runoob.com> ? Vue build standalone ? Use ESLint to lint your code? Yes ? Pick an ESLint preset Standard ? Setup unit tests with Karma + Mocha? Yes ? Setup e2e tests with Nightwatch? Yes


vue 安装卸载
  • Install the latest version
	npm install -g @vue/cli
或
	yarn global add @vue/cli
  • Uninstall previous versions
npm uninstall vue-cli -g 
或 
yarn global remove vue-cli
  • View
vue --version
或
vue -V

Guess you like

Origin www.cnblogs.com/taochengyong/p/11105984.html