node.js - How do I install mailparser module via npm on Windows 7 x64? -
apologies if there obvious i'm missing, i've never encountered error before using npm:
c:\work\spark3>npm install mailparser npm http https://registry.npmjs.org/mailparser npm http 304 https://registry.npmjs.org/mailparser npm http https://registry.npmjs.org/encoding npm http https://registry.npmjs.org/mime npm http https://registry.npmjs.org/mimelib npm http https://registry.npmjs.org/iconv npm http 304 https://registry.npmjs.org/mime npm http 304 https://registry.npmjs.org/mimelib npm http 304 https://registry.npmjs.org/encoding npm http 304 https://registry.npmjs.org/iconv npm http https://registry.npmjs.org/iconv-lite/0.2.7 npm http https://registry.npmjs.org/addressparser npm http 304 https://registry.npmjs.org/iconv-lite/0.2.7 npm http 304 https://registry.npmjs.org/addressparser > iconv@2.0.4 install c:\work\spark3\node_modules\mailparser\node_modules\iconv > node-gyp rebuild c:\work\spark3\node_modules\mailparser\node_modules\iconv>node "c:\program files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild gyp err! configure error gyp err! stack error: spawn enoent gyp err! stack @ errnoexception (child_process.js:975:11) gyp err! stack @ process.childprocess._handle.onexit (child_process.js:766:34) gyp err! system windows_nt 6.1.7600 gyp err! command "node" "c:\\program files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "rebuild" gyp err! cwd c:\work\spark3\node_modules\mailparser\node_modules\iconv gyp err! node -v v0.10.4 gyp err! node-gyp -v v0.9.5 gyp err! not ok npm warn optional dep failed, continuing iconv@2.0.4 mailparser@0.3.4 node_modules\mailparser ├── mime@1.2.9 ├── mimelib@0.2.12 (addressparser@0.1.3) └── encoding@0.1.6 (iconv-lite@0.2.7)
i have tried following on windows machine after scouring web:
- reinstalling node.js
- reinstalling python 2.7
- ensuring path python set
- updating npm
- installing visual c++ express 2010
- installing node-gyp globally
the problem iconv module which, according github page, "may or may not work windows".
since mailparser declares an optional dependency, try downloading mailparser source , remove iconv package.json
dependency.
Comments
Post a Comment