一、環境變量找不到python與python2
需要安裝與機器和npm適配的由Microsoft免費提供的Visual C ++ Build Tools 2017、.net framework 4.5.1、python2.7
npm install --global --production windows-build-tools
如需安裝Visual C ++ Build Tools 2015(節點7及以下版本所需),請使用windows-build-tools@1.4.2
npm install --global --production windows-build-tools@1.4.2
二、找不到node-gyp模塊
node程序中需要調用一些其他語言編寫的 工具 或者dll,需要編譯node-gyp解決跨平台問題,安裝命令如下,如果不能解決,就重復一
npm install -g node-gyp
三、找不到node-sass模塊
npm install node-sass@latest
四、phantomJS not found on PATH
npm install phantomjs-prebuilt@2.1.14 --ignore-scripts