【问题标题】:Error when installing famo.us安装 famo.us 时出错
【发布时间】:2015-07-16 18:47:54
【问题描述】:

我已经安装了 node.js,我想安装 fam.us (http://famous.org/get-started.html)

我试过这个命令

npm install -g famous-cli

但我收到一个错误,有人知道如何解决它吗?

C:\Users\Me\Desktop\Apps\Messenger>npm install -g famous-cli
C:\Users\Me\AppData\Roaming\npm\famous -> C:\Users\Me\AppData\Roaming\npm\no
de_modules\famous-cli\bin\famous.js
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "famous-cli"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "famous-cli"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "famous-cli"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settin
gs.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.  See: 'npm help config'
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\phonegap-build requires colors@'0.6.x' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\readable-stream,
npm WARN unmet dependency which is version 1.1.13-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\prompt\node_modules\winston requires colors@'0.x.x' but will load

npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
famous-cli@0.2.6 C:\Users\Me\AppData\Roaming\npm\node_modules\famous-cli
├── btoa@1.1.2
├── mime@1.3.4
├── minimist@1.1.0
├── async@0.9.0
├── mixpanel@0.2.1
├── isbinaryfile@2.0.3
├── commander@2.7.1 (graceful-readlink@1.0.1)
├── combined-stream@1.0.3 (delayed-stream@1.0.0)
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1
.3.1, has-ansi@1.0.3, strip-ansi@2.0.1)
├── mime-types@2.0.12 (mime-db@1.10.0)
├── recursive-readdir@1.2.1 (minimatch@0.3.0)
├── latest-version@1.0.0 (package-json@1.1.0)
├── fs-extra@0.18.4 (jsonfile@2.0.1, graceful-fs@3.0.7, rimraf@2.3.4)
├── tar@2.1.1 (inherits@2.0.1, block-stream@0.0.8, fstream@1.0.6)
├── node-rest-client@1.4.4 (xml2js@0.4.8)
└── inquirer@0.8.2 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.
3.7, readline2@0.1.1, lodash@3.9.2, rx@2.5.2)
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "C:\\Program Files\\nodejs\\\\node.exe" "C:\\Program Files\\nodejs
\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "famous-cli"
npm ERR! node v0.12.0
npm ERR! npm  v2.5.1

npm ERR! Callback called more than once.
npm ERR!
npm ERR! If you need help, you may report this error at:
npm ERR!     <http://github.com/npm/npm/issues>

npm ERR! Please include the following file with any support request:
npm ERR!     C:\Users\Me\Desktop\Apps\Messenger\npm-debug.log

C:\Users\Me\Desktop\Apps\Messenger>npm install -g famous-cli
C:\Users\Me\AppData\Roaming\npm\famous -> C:\Users\Me\AppData\Roaming\npm\no
de_modules\famous-cli\bin\famous.js
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\phonegap-build requires colors@'0.6.x' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\readable-stream,
npm WARN unmet dependency which is version 1.1.13-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\prompt\node_modules\winston requires colors@'0.x.x' but will load

npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
famous-cli@0.2.6 C:\Users\Me\AppData\Roaming\npm\node_modules\famous-cli
├── btoa@1.1.2
├── mime@1.3.4
├── async@0.9.0
├── minimist@1.1.0
├── mixpanel@0.2.1
├── combined-stream@1.0.3 (delayed-stream@1.0.0)
├── isbinaryfile@2.0.3
├── commander@2.7.1 (graceful-readlink@1.0.1)
├── mime-types@2.0.12 (mime-db@1.10.0)
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1
.3.1, strip-ansi@2.0.1, has-ansi@1.0.3)
├── recursive-readdir@1.2.1 (minimatch@0.3.0)
├── latest-version@1.0.0 (package-json@1.1.0)
├── fs-extra@0.18.4 (jsonfile@2.0.1, graceful-fs@3.0.7, rimraf@2.3.4)
├── tar@2.1.1 (inherits@2.0.1, block-stream@0.0.8, fstream@1.0.6)
├── node-rest-client@1.4.4 (xml2js@0.4.8)
└── inquirer@0.8.2 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.
3.7, readline2@0.1.1, lodash@3.9.2, rx@2.5.2)

C:\Users\Me\Desktop\Apps\Messenger>npm install -g famous-cli
C:\Users\Me\AppData\Roaming\npm\famous -> C:\Users\Me\AppData\Roaming\npm\no
de_modules\famous-cli\bin\famous.js
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\phonegap-build requires colors@'0.6.x' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\readable-stream,
npm WARN unmet dependency which is version 1.1.13-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\prompt\node_modules\winston requires colors@'0.x.x' but will load

npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
famous-cli@0.2.6 C:\Users\Me\AppData\Roaming\npm\node_modules\famous-cli
├── btoa@1.1.2
├── mime@1.3.4
├── minimist@1.1.0
├── async@0.9.0
├── mixpanel@0.2.1
├── isbinaryfile@2.0.3
├── combined-stream@1.0.3 (delayed-stream@1.0.0)
├── commander@2.7.1 (graceful-readlink@1.0.1)
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1
.3.1, strip-ansi@2.0.1, has-ansi@1.0.3)
├── mime-types@2.0.12 (mime-db@1.10.0)
├── recursive-readdir@1.2.1 (minimatch@0.3.0)
├── latest-version@1.0.0 (package-json@1.1.0)
├── fs-extra@0.18.4 (jsonfile@2.0.1, graceful-fs@3.0.7, rimraf@2.3.4)
├── tar@2.1.1 (inherits@2.0.1, block-stream@0.0.8, fstream@1.0.6)
├── node-rest-client@1.4.4 (xml2js@0.4.8)
└── inquirer@0.8.2 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.
3.7, readline2@0.1.1, lodash@3.9.2, rx@2.5.2)

C:\Users\Me\Desktop\Apps\Messenger>npm install -g famous-cli
C:\Users\Me\AppData\Roaming\npm\famous -> C:\Users\Me\AppData\Roaming\npm\no
de_modules\famous-cli\bin\famous.js
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\phonegap-build requires colors@'0.6.x' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\stream-counter requires readable-stream@'~1.1.8' but will load
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\connect-phonegap\node_modules\connect\node_modules\multiparty\nod
e_modules\readable-stream,
npm WARN unmet dependency which is version 1.1.13-1
npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\prompt\node_modules\winston requires colors@'0.x.x' but will load

npm WARN unmet dependency C:\Users\Me\AppData\Roaming\npm\node_modules\phonega
p\node_modules\colors,
npm WARN unmet dependency which is version 0.6.0-1
famous-cli@0.2.6 C:\Users\Me\AppData\Roaming\npm\node_modules\famous-cli
├── btoa@1.1.2
├── mime@1.3.4
├── minimist@1.1.0
├── async@0.9.0
├── mixpanel@0.2.1
├── combined-stream@1.0.3 (delayed-stream@1.0.0)
├── isbinaryfile@2.0.3
├── mime-types@2.0.12 (mime-db@1.10.0)
├── commander@2.7.1 (graceful-readlink@1.0.1)
├── chalk@1.0.0 (escape-string-regexp@1.0.3, ansi-styles@2.0.1, supports-color@1
.3.1, strip-ansi@2.0.1, has-ansi@1.0.3)
├── recursive-readdir@1.2.1 (minimatch@0.3.0)
├── latest-version@1.0.0 (package-json@1.1.0)
├── fs-extra@0.18.4 (jsonfile@2.0.1, graceful-fs@3.0.7, rimraf@2.3.4)
├── tar@2.1.1 (inherits@2.0.1, block-stream@0.0.8, fstream@1.0.6)
├── node-rest-client@1.4.4 (xml2js@0.4.8)
└── inquirer@0.8.2 (figures@1.3.5, ansi-regex@1.1.1, cli-width@1.0.1, through@2.
3.7, readline2@0.1.1, lodash@3.9.2, rx@2.5.2)

C:\Users\Me\Desktop\Apps\Messenger>

【问题讨论】:

  • 好像安装好了。运行“着名”时遇到什么错误?
  • 我没有看到famo.us文件夹,我安装的任何其他模块,我可以在同一个目录中看到它。
  • 著名-cli 是命令。它不会创建文件夹。运行“着名的创建您的项目名称”以创建著名的项目文件夹。
  • 我更新到最新的节点版本,然后它只给出未满足的依赖警告与电话差距,但没有错误。

标签: node.js npm famo.us famous-cli


【解决方案1】:

您的主要错误似乎是ECONNRESET,npm 在错误日志中方便地向您描述:

这很可能不是 npm 本身的问题,与网络连接有关。在大多数情况下,您使用代理或网络设置错误。

您应该检查您的 WiFi 或网络电缆,然后重试。清除您的 npm 依赖项并从头开始可能会有所帮助:

rm -rf node_modules
rm -rf ~/.npm
rm -rf [your node path]/lib/node_modules

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2020-09-12
    • 2013-10-05
    • 2013-08-15
    • 2013-11-13
    • 2017-10-02
    相关资源
    最近更新 更多