Ubuntu + Ember 不工作
Ubuntu + Ember not working
我安装了 node 0.12.0,我使用 NVM 安装它。
我安装了 ember-cli,我使用 npm 安装它:
我通过以下方式安装它:
sudo npm install -g ember-cli
虽然现在,当我尝试 运行 ember 服务器上一个全新的 ember 项目时,它让我得到了 100 个模块,我已经做了大约一半一个小时并使用 npm 手动安装每个模块。他们是更好的方法吗,因为这很痛苦?
另外,我似乎无法获取 node/debug 模块,所以我有点卡住了。
arie@arie-UX32VD:~/Desktop/programming/git/bostonember/ember$ sudo npm install debug/node
npm ERR! git clone git@github.com:debug/node Cloning into bare repository '/home/arie/.npm/_git-remotes/git-github-com-debug-node-65a3e6d9'...
npm ERR! git clone git@github.com:debug/node Permission denied (publickey).
npm ERR! git clone git@github.com:debug/node fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:debug/node
npm ERR! git clone git@github.com:debug/node Please make sure you have the correct access rights
npm ERR! git clone git@github.com:debug/node and the repository exists.
npm ERR! addLocal Could not install debug/node
npm ERR! Error: ENOENT, stat 'debug/node'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.16.0-34-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "debug/node"
npm ERR! cwd /home/arie/Desktop/programming/git/bostonember/ember
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path debug/node
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/arie/Desktop/programming/git/bostonember/ember/npm-debug.log
npm ERR! not ok code 0
您感到困惑是因为您的系统中有多个版本的 Node。您通过 nvm
安装了它,可能您还通过 apt-get
安装了 Node,后者会询问 sudo
权限,nvm
永远不会那样做。
sudo apt-get remove node
从您的系统中完全删除节点并仅使用 nvm
安装的二进制文件。您可以通过以下方式验证您是否使用了正确的二进制文件:
which node
预期输出:
~/.nvm/v0.12.00/bin/node
我安装了 node 0.12.0,我使用 NVM 安装它。 我安装了 ember-cli,我使用 npm 安装它: 我通过以下方式安装它: sudo npm install -g ember-cli
虽然现在,当我尝试 运行 ember 服务器上一个全新的 ember 项目时,它让我得到了 100 个模块,我已经做了大约一半一个小时并使用 npm 手动安装每个模块。他们是更好的方法吗,因为这很痛苦?
另外,我似乎无法获取 node/debug 模块,所以我有点卡住了。
arie@arie-UX32VD:~/Desktop/programming/git/bostonember/ember$ sudo npm install debug/node
npm ERR! git clone git@github.com:debug/node Cloning into bare repository '/home/arie/.npm/_git-remotes/git-github-com-debug-node-65a3e6d9'...
npm ERR! git clone git@github.com:debug/node Permission denied (publickey).
npm ERR! git clone git@github.com:debug/node fatal: Could not read from remote repository.
npm ERR! git clone git@github.com:debug/node
npm ERR! git clone git@github.com:debug/node Please make sure you have the correct access rights
npm ERR! git clone git@github.com:debug/node and the repository exists.
npm ERR! addLocal Could not install debug/node
npm ERR! Error: ENOENT, stat 'debug/node'
npm ERR! If you need help, you may report this *entire* log,
npm ERR! including the npm and node versions, at:
npm ERR! <http://github.com/npm/npm/issues>
npm ERR! System Linux 3.16.0-34-generic
npm ERR! command "/usr/bin/node" "/usr/bin/npm" "install" "debug/node"
npm ERR! cwd /home/arie/Desktop/programming/git/bostonember/ember
npm ERR! node -v v0.10.37
npm ERR! npm -v 1.4.28
npm ERR! path debug/node
npm ERR! code ENOENT
npm ERR! errno 34
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! /home/arie/Desktop/programming/git/bostonember/ember/npm-debug.log
npm ERR! not ok code 0
您感到困惑是因为您的系统中有多个版本的 Node。您通过 nvm
安装了它,可能您还通过 apt-get
安装了 Node,后者会询问 sudo
权限,nvm
永远不会那样做。
sudo apt-get remove node
从您的系统中完全删除节点并仅使用 nvm
安装的二进制文件。您可以通过以下方式验证您是否使用了正确的二进制文件:
which node
预期输出:
~/.nvm/v0.12.00/bin/node