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

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

    Try this : npm install node-sass@version .

    if you want the latest, then just try npm install node-sass .

    If you're getting access problem then:

    1. Windows: command prompt in admin mode, then run the above.

    2. Mac: sudo npm install node-sass.

    ERROR in Cannot find module 'node-sass'

    https://github.com/sass/node-sass/issues/603

提交回复
热议问题