meteor失败,无法从npm-shrinkwrap

时间:2015-06-28 21:24:21

标签: node.js meteor proxy request-timed-out npm-shrinkwrap

我已经诊断了这个问题几天了,并且已经测试了针对“meteor”和“npm”依赖项出现的顶级问题解决方案,这些解决方案与此类似。我和我的后端工程师都很难过。

我使用的是OSX 10.10.3,ruby 1.9.3,节点v0.10.36,npm 1.4.28,meteor 1.1.02。

此外,由于错误似乎表明,我不在代理的后面。

我的环境路径是:

export PATH =“/ usr / local / bin:/ usr / bin:/ bin:/ usr / sbin:/ sbin”

以下是错误:

=> Started proxy.                             
=> Started MongoDB.                           
npm-container: updating npm dependencies -- hummus, shipping-ups...
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No
description
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No
repository field.
npm WARN package.json packages-for-meteor-smartpackage-1wscwem@0.0.0 No README
data
../src/deps/LibTiff/tif_unix.c:140:6: warning: cast to 'thandle_t' (aka 'void
*') from smaller integer type 'int' [-Wint-to-void-pointer-cast]
(thandle_t) fd,
^
1 warning generated.
../src/deps/LibTiff/tif_write.c:633:49: warning: comparison of integers of
different signs: 'toff_t' (aka 'unsigned int') and 'tsize_t' (aka 'int')
[-Wsign-compare]
&& td->td_stripbytecount[strip] >= cc )
~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ^  ~~
1 warning generated.
npm ERR! fetch failed
http://npm.iad.ua.com:4873/strip-ansi/-/strip-ansi-2.0.1.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz
npm ERR! fetch failed http://npm.iad.ua.com:4873/has-ansi/-/has-ansi-1.0.3.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/ansi-styles/-/ansi-styles-2.0.1.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/cryptiles/-/cryptiles-2.0.4.tgz
../deps/libexpat/lib/xmltok.c:471:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:484:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:504:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:517:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:730:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:749:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:762:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:775:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:871:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
../deps/libexpat/lib/xmltok.c:890:1: warning: missing field 'isName2'
initializer [-Wmissing-field-initializers]
};
^
10 warnings generated.
npm ERR! fetch failed http://npm.iad.ua.com:4873/sntp/-/sntp-1.0.9.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/ansi-styles/-/ansi-styles-2.0.1.tgz
npm ERR! fetch failed http://npm.iad.ua.com:4873/has-ansi/-/has-ansi-1.0.3.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/strip-ansi/-/strip-ansi-2.0.1.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/cryptiles/-/cryptiles-2.0.4.tgz
npm ERR! fetch failed http://npm.iad.ua.com:4873/sntp/-/sntp-1.0.9.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/escape-string-regexp/-/escape-string-regexp-1.0.3.tgz
npm ERR! fetch failed http://npm.iad.ua.com:4873/has-ansi/-/has-ansi-1.0.3.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/ansi-styles/-/ansi-styles-2.0.1.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/strip-ansi/-/strip-ansi-2.0.1.tgz
npm ERR! fetch failed
http://npm.iad.ua.com:4873/cryptiles/-/cryptiles-2.0.4.tgz
npm ERR! fetch failed http://npm.iad.ua.com:4873/sntp/-/sntp-1.0.9.tgz
npm ERR! network connect ETIMEDOUT
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
settings.
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! System Darwin 14.3.0
npm ERR! command
"/Users/aurorajohansenwardigo/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/node"
"/Users/aurorajohansenwardigo/.meteor/packages/meteor-tool/.1.1.3.1wysac9++os.osx.x86_64+web.browser+web.cordova/mt-os.osx.x86_64/dev_bundle/bin/npm"
"install"
npm ERR! cwd
/Users/aurorajohansenwardigo/Documents/Projects/<project folder path>/<git branch>/packages/npm-container/.npm/package-new-fwmz2e
npm ERR! node -v v0.10.36
npm ERR! npm -v 1.4.28
npm ERR! syscall connect
npm ERR! code ETIMEDOUT
npm ERR! errno ETIMEDOUT
npm ERR! not ok code 0

=> Errors prevented startup:                  

   While building package npm-container:
   error: couldn't install npm packages from npm-shrinkwrap

=> Your application has errors. Waiting for file change.

如果您需要任何其他诊断信息,请告诉我。

1 个答案:

答案 0 :(得分:5)

回到基础并且能够通过使用以下步骤来运行应用程序:

meteor remove meteorhacks:npm

如果删除命令不起作用,请手动删除&#34; meteorhacks:npm&#34;和&#34; npm-contanier&#34;来自.meteor的参考资料&gt;包文件。然后删除文件夹:/ packages / npm-container

添加meteorhacks:npm回到项目中:

meteor add meteorhacks:npm

启动应用程序以初始化npm包:

meteor

在项目中配置settings.json文件     meteor --settings settings.json