Then please note that node-sass downloads the compiled binary file by default, so you need to re-specify it. My method is as follows, which is not the only one:
One thing you need to know is to switch the node version directly. The modules installed by node_modules are 无法使用. The node_model installed in node4.x cannot be used normally if you switch to version 6.x and needs to be 删掉restartednpm install. So I suggest you upgrade your local machine to 6.x, install the module and then package the application (nvm can help you manage the installation switching of multiple node versions).
Can you give me more details, for example, what kind of bag is it packed in?This is my plan, you can try it:
target
is the version number of electronThen please note that node-sass downloads the compiled binary file by default, so you need to re-specify it. My method is as follows, which is not the only one:
One thing you need to know is to switch the node version directly. The modules installed by node_modules are
无法使用
.The node_model installed in node4.x cannot be used normally if you switch to version 6.x and needs to be
删掉
restartednpm install
.So I suggest you upgrade your local machine to 6.x, install the module and then package the application (nvm can help you manage the installation switching of multiple node versions).