首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Phoenix框架的NPM安装错误

Phoenix框架的NPM安装错误
EN

Stack Overflow用户
提问于 2016-02-22 12:41:42
回答 2查看 1.3K关注 0票数 7

我在debian jessie上,我正在尝试建立phoenix框架。我使用mix phoenix.new创建了一个新的phoenix应用程序,然后进入该文件夹。当我运行'npm install‘时,我得到以下错误:

代码语言:javascript
复制
sudo npm install
npm ERR! git clone git@github.com:file:deps/phoenix_html Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-file-deps-phoenix-html-50a27b71'...
npm ERR! git clone git@github.com:file:deps/phoenix_html Permission denied (publickey).
npm ERR! git clone git@github.com:file:deps/phoenix_html fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:file:deps/phoenix_html 
npm ERR! git clone git@github.com:file:deps/phoenix_html Please make sure you have the correct access rights
npm ERR! git clone git@github.com:file:deps/phoenix_html and the repository exists.
npm ERR! 404 Not Found
npm ERR! 404 
npm ERR! 404 'phoenix_html' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it
npm ERR! 404 
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, or http url, or git url.

npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install"
npm ERR! cwd /home/andy/Phoenix/test_phoenix
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code E404
npm ERR! git clone git@github.com:file:deps/phoenix Cloning into bare repository '/root/.npm/_git-remotes/git-github-com-file-deps-phoenix-c83d6c1a'...
npm ERR! git clone git@github.com:file:deps/phoenix Permission denied (publickey).
npm ERR! git clone git@github.com:file:deps/phoenix fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:file:deps/phoenix 
npm ERR! git clone git@github.com:file:deps/phoenix Please make sure you have the correct access rights
npm ERR! git clone git@github.com:file:deps/phoenix and the repository exists.
npm ERR! 
npm ERR! Additional logging details can be found in:
npm ERR!     /home/andy/Phoenix/test_phoenix/npm-debug.log
npm ERR! not ok code 0

问题出在哪里?

EN

回答 2

Stack Overflow用户

发布于 2016-03-05 15:09:10

使用nvm安装最新版本的方法之一。对我来说,这很有帮助。首先删除旧版本。

代码语言:javascript
复制
sudo apt-get remove nodejs

并安装最新版本

代码语言:javascript
复制
wget -qO- https://raw.githubusercontent.com/creationix/nvm/v0.31.0/install.sh | bash
nvm install 5.0
nvm use 5.0
票数 4
EN

Stack Overflow用户

发布于 2016-05-01 09:56:40

我遇到了同样的错误,然后意识到我使用的是较旧版本的node。解决方案是将节点更新为比v5.0.0更新的版本。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35545939

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档