2014-12-11 99 views
1

我正在新笔记本电脑上设置Ember应用程序。我通过brew安装了节点npm,并且我也安装了Ember CLI。在灰烬CLI应用程序,我试图做一个npm install但是当我做,我在终端得到这个错误:无法在Ember CLI应用程序中运行npm install?

npm WARN package.json [email protected] 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 

我不能运行我的项目直到解决。我错过了什么?我什至谷歌搜索,但找不到任何表示

回答

0

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

+0

我的package.json没有为“expresss”的任意字符串固定。这是我唯一具有“表达”的东西:“^ 4.1.1”,'。 – Nag 2014-12-11 05:04:36

+0

您是否也看过ember-cli package.json? – imahungry 2014-12-11 11:33:23

+0

我实际上对整个文件夹“expresss”做了一个确认,但没有找到任何东西。 – Nag 2014-12-11 22:19:31

1

我的猜测是'expresss'(带有一个额外的s)是npm上的一个包被拉的。这个依赖实际上是在ember-cli的package.json文件中列出的,但我认为任何人都不会注意到它,直到后来的版本。

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

+0

你是对的!但是,当我在系统中查找“expresss”这个词时,它并没有出现在任何地方。只有一次,它显示在package.json文件中。见https://github.com/stefanpenner/ember-cli/issues/2723#issuecomment-66706275。我很困惑,我可以在我的新笔记本电脑上使用最新版本的node和npm来创建一个0.4 package.json。我能做些什么来解决这个问题? – Nag 2014-12-12 22:03:17

1

我可以通过卸载节点,故宫完全利用BREW解决这个问题。然后,使用nodejs.org中的包安装node.js。现在,我的npm版本是1.4.28。看起来问题是由更新的npm 2.1.10引起的。不知道为什么brew会自动选择新的npm。

0

我面临着同样的问题,但它得到了通过运行sudo的NPM安装-g烬-CLI