通过官方指令
npm install -g @vue/cli
安装vue脚手架提示:
no command 'vue' found, did you mean:
command 'vpe' from package 'texlive-latex-extra' (universe)
vue: command not found
解决方法:
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
~/.profile
file and add this line:
export path=~/.npm-global/bin:$path
source ~/.profile
sudo
:
npm install -g jshint
instead of steps 2-4, you can use the corresponding env variable (e.g. if you don’t want to modify ~/.profile
):
npm_config_prefix=~/.npm-global
如对本文有疑问, 点击进行留言回复!!
offset、client、scroll (width,height、left,top、X,Y)
网友评论