# 關於npm的更新 最近遇到的狀況,再做vue專案的時候,公司的電腦在做build project出現狀況 ``` bash npm WARN npm npm does not support Node.js v10.15.2 npm WARN npm You should probably upgrade to a newer version of node as we npm WARN npm cant make any promises that npm will work with this version. npm WARN npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9. npm WARN npm You can find the latest version at https://nodejs.org/ ``` 翻閱許多方式,大多都要更新npm版本的作法 本身的用的os環境為ubuntu19.10的桌面環境 最後用npm -v查看還是沒成功更新版本 大多看到的: `npm install npm@latest -g` 最後用此建議指令才成功,似乎是國外有人寫了一個shell去做相關的動作 ```bash curl https://www.npmjs.com/install.sh | sudo sh ``` 希望幫到與我有相同問題的人