vue 項目初始化出現 tar ENOENT: no such file or directory 錯誤的解決辦法
在初始化項目時 npm install 時,出現了 tar ENOENT: no such file or directory 報錯。
原因:node 的版本問題,前面項目使用了老版本的 nodejs
解決辦法:全局環境下更新 node 版本,按照順序運行下面的語句
npm cache clean -f
npm install -g npm
此時會更換 node 的版本,更新 node 后,再次運行 npm install 即可