【问题标题】:Invalid character in the given encoding in "npm install" nodemailer“npm install”nodemailer 中给定编码中的无效字符
【发布时间】:2012-10-04 04:55:35
【问题描述】:

我试过了

npm install -g mongodb formidable nodemailer simplesmtp imap

红线报错后:

.....AppData.....node_modules\iconv\build\icovcxproj(40,47)> error MSB4025: The project file could not be loaded: Invalid character in the given encoding. Line 40, position 47. ... 

npm WARN optional dep failed, continuing iconv@1.2.3 ... 

在一些错误之后!行。

我能做什么?

(操作:Windows 8)

【问题讨论】:

标签: node.js installation npm


【解决方案1】:

似乎问题在于安装依赖项之一iconv

您应该向我们展示npm install -g iconv 的输出。如果可以的话,post it to the project's issue list

我不确定哪些项目(mongodb 强大的 nodemailer simplesmtp imap)有 iconv 作为依赖项,但单独安装它们应该会让你知道。

npm install -g mongodb
npm install -g formidable
npm install -g nodemailer
...

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-02-09
    • 2014-10-14
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多