終端機顯示Cannot find module 'sass'


Posted by mijouhsieh on 2023-05-10

在做React 作業時,有scss檔案,但沒有安裝sass module。
助教在git clone後
助教的終端機出現 Cannot find module 'sass' (自己電腦下載專案並沒有顯示同狀況)
Cannot find module 'sass'
相關資料:
Cannot find module 'sass'

安裝 npm i sass --save-dev 就解決了


自己從github git clone 專案資料夾後則是
終端機出現
need-to-install-react-scripts.jpg

需要安裝 npm i react-scripts --save-dev
即可npm start ,顯示localhost:3000 專案畫面。


#Cannot find module 'sass' #sass module #react-scripts module







Related Posts

[JS102] npm, Jest, ES6  &[ALG101]

[JS102] npm, Jest, ES6 &[ALG101]

Git error -> fatal: the remote end hung up unexpectedly

Git error -> fatal: the remote end hung up unexpectedly

Day 54 & 55 - Function Decorators

Day 54 & 55 - Function Decorators


Comments