问题描述
当我尝试使用npm安装node-sass时,出现以下错误消息:
When I try to install node-sass using npm, I get the following error message:
我使用的命令是:
npm install node-sass --save-dev-
您可以在下面的屏幕截图中查看更多详细信息:
You can see more details in the screenshot below:
推荐答案
在苦苦挣扎之后,终于找到了确切的解决方案.在node js软件文件夹中,仍在npm-cache文件夹中创建node-sass \ 4.5.0文件夹.因此,我手动下载了win32-x64-48_binding.node,并将其放在C:\ Users \ Administrator \ AppData \ Roaming \ npm-cache \ node-sass \ 4.5.0文件夹中.
After struggling , finally found exact solution. In node js software folder, node-sass\4.5.0 folder is still created in npm-cache folder. So I download win32-x64-48_binding.node manually, put it in C:\Users\Administrator\AppData\Roaming\npm-cache\node-sass\4.5.0 folder.
并运行npm install命令,问题已解决.
And run npm install command, issue resolved.
这篇关于节点资源安装问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!