我试图通过npm安装Yeoman,但是当我运行npm install -g yo
时出现以下错误:
npm WARN deprecated npmconf@2.1.2: this package has been reintegrated into npm and is now out of date with respect to npm
/home/marieficid/.node/bin/yo -> /home/marieficid/.node/lib/node_modules/yo/lib/cli.js
> yo@1.6.0 postinstall /home/marieficid/.node/lib/node_modules/yo
> yodoctor
Yeoman Doctor
Running sanity checks on your system
✔ Global configuration file is valid
✖ Node.js version
Your Node.js version is outdated.
Upgrade to the latest version: https://nodejs.org
✔ No .bowerrc file in home directory
✔ No .yo-rc.json file in home directory
✖ npm version
Your npm version is outdated.
Upgrade to the latest version by running:
npm install -g npm
✔ NODE_PATH matches the npm root
Found potential issues on your machine :(
/home/marieficid/.node/lib
└── yo@1.6.0
这很奇怪,因为当我跑node --version && npm --version
时,我得到:
v4.3.1
3.7.3
当我尝试运行npm install -g n
时,我得到:
/home/marieficid/.node/bin/n -> /home/marieficid/.node/lib/node_modules/n/bin/n
/home/marieficid/.node/lib
└── n@2.1.0
我尝试运行this solution,这只会给我带来更多问题:现在我无法运行节点--version
,只能运行n --version
,它返回2.1.0,我可以& #39;运行npm install -g n
因为我得到了这个:
marieficid@mariana-K46CB:~$ npm install -g n
/usr/bin/env: node: Arquivo ou diretório não encontrado
这意味着"找不到目录"。我能做什么?顺便说一句,我在Ubuntu 14.04上。
编辑:我想我搞砸了我的$ PATH变量......有谁知道如何修复它?
答案 0 :(得分:0)
你应该运行
figure {
display: inline-block;
}
不
npm install -g npm
根据你的输出