首页 > 解决方案 > 在 aws 服务器上执行 npm install 时 SASS 创建问题

问题描述

我正在尝试在 aws ec2 实例上部署我的 mern 堆栈项目。我正在尝试在客户端文件夹上运行 npm install 它给了我

npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-sass@4.14.1 postinstall: `node scripts/build.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the node-sass@4.14.1 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!     /home/ubuntu/.npm/_logs/2020-09-10T17_33_41_380Z-debug.log

标签: node.jsamazon-web-servicesamazon-ec2sass

解决方案


推荐阅读