无法在Ubuntu 20上安装Gatsby

时间:2020-10-26 12:43:43

标签: node.js reactjs ubuntu gatsby

我要在Ubuntu服务器上部署Gatsby.js开发的网站。 我已在Ubuntu 20服务器上成功安装了node和git,我打算安装gatsby-cli,但由于这些错误而失败。

npm install -g gatsby-cli

请随时让我知道如何解决此问题。

npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! core-js@2.6.11 postinstall: `node -e "try{require('./postinstall')}catch(e){}"`
npm ERR! spawn ENOENT
npm ERR! 
npm ERR! Failed at the core-js@2.6.11 postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2020-10-26T12_39_42_916Z-debug.log

0 个答案:

没有答案