我安装了节点0.12.0,我使用NVM安装它 . 我安装了ember-cli,我使用npm:我安装了它:sudo npm install -g ember-cli
现在,当我尝试在一个全新的ember项目上运行ember服务器时,它让我获得100个模块,我已经做了大约半个小时并使用npm手动安装每个模块 . 他们是更好的方法吗,因为这是一种痛苦?
同样,我似乎无法获得节点/调试模块,所以我有点卡住了 .
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
1 回答
您会感到困惑,因为您的系统中有多个版本的Node . 你通过
nvm
安装了它,可能你也通过apt-get
安装了Node,后者是询问sudo
权限的那个,nvm
永远不会这样做 .从系统中完全删除节点,仅使用
nvm
安装的二进制文件 . 您可以验证您使用的是正确的二进制文件:预期产量: