gpt4 book ai didi

node.js - meteor 失败,无法从 npm-shrinkwrap 安装 npm-packages

转载 作者:搜寻专家 更新时间:2023-11-01 00:23:47 26 4
gpt4 key购买 nike

几天来我一直在诊断这个问题,并测试了与这个看起来相似的“meteor”和“npm”依赖项出现的最重要的问题解决方案。我和我的后端工程师都被难住了。

我使用的是 OSX 10.10.3、ruby 1.9.3、node v0.10.36、npm 1.4.28、meteor 1.1.02。

此外,正如错误所表明的那样,我并不支持代理。

我的环境 PATH 是:

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.

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

最佳答案

回到基础知识并能够使用以下步骤运行应用程序:

meteor remove meteorhacks:npm

如果删除命令不起作用,请从 .meteor > 包文件中手动删除“meteorhacks:npm”和“npm-contanier”引用。然后删除文件夹:/packages/npm-container

将 meteorhacks:npm 添加回项目中:

meteor add meteorhacks:npm

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

meteor

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

关于node.js - meteor 失败,无法从 npm-shrinkwrap 安装 npm-packages,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/31104909/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com