错误的ERR! enoent ENOENT:没有这样的文件或目录,打开'/ usr / local / lib / node_modules / mdo-browser-support'

时间:2016-07-07 00:03:27

标签: ibm-mobilefirst

我正在尝试安装最新的mfpdev-cli版本(8.0.2016062816)但是我收到以下错误:

npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "mfpdev-cli"
npm ERR! node v6.2.1
npm ERR! npm  v3.9.3
npm ERR! path /usr/local/lib/node_modules/mdo-browser-support
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent ENOENT: no such file or directory, open '/usr/local/lib/node_modules/mdo-browser-support'
npm ERR! enoent
This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! anoint

检查存储库,我无法找到mdo- *模块,这就是问题所在。

我也尝试通过.tar.gz文件安装它,但是同样的错误。

这个问题是否存在“解决方法”?

2 个答案:

答案 0 :(得分:1)

尝试:

sudo npm install -g mfpdev-cli@8.0.2016062416 --no-optional

看起来新版本有问题。

答案 1 :(得分:0)

尝试使用" sudo"运行安装。

sudo npm install -g mfpdev-cli