node-sass installation issue

后端 未结 7 1330
清酒与你
清酒与你 2021-01-04 10:57

When I try to install node-sass using npm, I get the following error message:

Cannot download \"https://github.com/sass/node-sass/releases/download/v3

相关标签:
7条回答
  • 2021-01-04 11:52

    I see you are running node version 8.1.4. You can also check it using node --version in the command prompt.

    You'll have to use a version >= v4.5.3 instead because lower versions of node-sass are incompatible with node8. This issue has been reported on their GitHub issue page. You either have to define using v4.5.3 instead or pass the the -g parameter while installing it, which seems to fetch the latest version automagically.

    when i used -g it worked properly and got the latest version

    Also, as @javiergarval has pointed out, you have a typo. It should have been --save-dev instead of --save-dev-.

    0 讨论(0)
提交回复
热议问题