Error: EACCES: permission denied, mkdir '/usr/local/lib/node_modules/node-sass/build'

前端 未结 7 799
被撕碎了的回忆
被撕碎了的回忆 2021-01-31 20:31

I am trying to run angular application and execute ng serve command then show

Error: Cannot find module \'node-sass\'.

7条回答
  •  醉梦人生
    2021-01-31 21:07

    I am working ionic and have this issue so I solved this by move one folder back and run command.

    sudo chmod -R 777 project-directory

    after this npm install node-sass --save

提交回复
热议问题