无法在Ember CLI应用程序中运行npm install吗?

时间:2014-12-11 04:10:27

标签: node.js ember.js ember-cli

我正在新笔记本电脑上设置Ember应用程序。我通过brew安装了node,npm,还有Ember CLI。在Ember CLI应用程序中,我正在尝试npm install,但是当我这样做时,我在终端中收到此错误:

npm WARN package.json npm@1.4.21 Non-dependency in bundleDependencies: inherits
npm ERR! Darwin 14.0.0
npm ERR! argv "node" "/usr/local/bin/npm" "install"
npm ERR! node v0.10.33
npm ERR! npm  v2.1.11
npm ERR! code E404

npm ERR! 404 Not Found: expresss
npm ERR! 404
npm ERR! 404 'expresss' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404 It was specified as a dependency of 'ember-cli'
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/Nagarjun/Code/sumo-list/web-client/npm-debug.log

在解决此问题之前,我无法运行我的项目。我错过了什么?我甚至用谷歌搜索但找不到 expresss 的任何内容。

4 个答案:

答案 0 :(得分:1)

我的猜测是'表达'(带有额外的s)是npm上的一个包被拉了。实际上,依赖关系是在ember-cli的package.json文件中列出的,但我认为在更高版本之前没有人注意到它。

证明:https://github.com/stefanpenner/ember-cli/blob/ec8a6ab898599746bddbb8f72f7633c29f0ee95b/package.json#L58

答案 1 :(得分:1)

我能够通过使用brew完全卸载node和npm来解决此问题。然后,使用nodejs.org中的包安装node.js.现在,我的npm版本是1.4.28。看起来问题是由较新的npm 2.1.10引起的。不知道为什么brew会自动获取新的npm。

答案 2 :(得分:0)

查看package.json依赖项部分。看起来像是一个错字。

答案 3 :(得分:0)

我遇到了同样的问题但是通过运行sudo npm install -g ember-cli

来修复它