简体   繁体   English

安装sass后在React中运行npm run build命令时出错

[英]Error while running npm run build command in react after installing sass

I installed sass using the command npm install --save-dev sass , while running npm run build command I'm getting the following error 我使用npm install --save-dev sass命令npm install --save-dev sass ,同时运行npm run build命令时出现以下错误

npm ERR! Failed at the react-app@1.1.0 build 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!     C:\Users\md3\AppData\Roaming\npm-cache\_logs\2019-11-27T06_26_11_296Z-debug.log

Refer the documentation https://www.npmjs.com/package/sass 请参阅文档https://www.npmjs.com/package/sass

Try this npm install -g sass 试试这个npm install -g sass

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 React 的“npm run build”命令在“虚拟环境”中运行时出错 - React's "npm run build" command gives error while running in "Virtual environment" 安装反应 JS 后运行 npm 启动时出错 - Getting error while running npm start after installing react JS 在 react js 中运行 npm-start 时出错。 尝试安装 sass 但仍然无法正常工作 - Error while running npm-start in react js. Tried installing sass but still not working 在反应应用程序中运行 npm run dev 命令时出错 - Error while running npm run dev command in react application npm 在 reactjs 中安装 jsonwebtoken package 后运行构建命令失败 - npm run build command is failing after installing jsonwebtoken package in reactjs 运行 npm 运行构建后反应应用程序更改未更新 - React app changes not updaiting after running npm run build 运行“npm run build”后“sh: 1: react-scripts: not found” - "sh: 1: react-scripts: not found" after running "npm run build" 通过 npm run for reactjs 项目运行构建命令时出错 - Error on running build command through npm run for reactjs project 反应:404/运行`npm run build`后没有文件夹结构 - React: 404/No folder structure after running `npm run build` 运行“npm run build”后收到 npm 错误:npm ERR! 代码 ELIFECYCLE npm ERR! 错误 2 - Receiving an npm error after running "npm run build" : npm ERR! code ELIFECYCLE npm ERR! errno 2
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM