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

前端 未结 7 826
被撕碎了的回忆
被撕碎了的回忆 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:01

    If you have not added node pakage.json yet try running node init if you already have this npm install node-sass. if both are present and you are using ubuntu try changing permission of the folder using chmod -R path to node module

提交回复
热议问题