IBM Mobile First - mfpdev-cli安装失败 [英] IBM Mobile First - mfpdev-cli Installation Failure

查看:385
本文介绍了IBM Mobile First - mfpdev-cli安装失败的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在安装npm mfpdev-cli(IBM Mobile First CLI)时遇到问题。

I have issue while installing npm mfpdev-cli (IBM Mobile First CLI).

我正在使用节点v 6.11.2 npm v 5.4.1

I am using node v 6.11.2 npm v 5.4.1

我无法安装mfpdev-cli。我收到以下错误:

I am unable to install mfpdev-cli. I am getting the below error:

错误消息:

npm ERR! path /Users/divya/Desktop/MFP/mdo-windows-support/package.json

npm ERR! code ENOPACKAGEJSON

npm ERR! errno -2

npm ERR! syscall open

npm ERR! package.json ENOENT: no such file or directory, open '/Users/divya/Desktop/MFP/mdo-windows-support/package.json'

npm ERR! package.json npm can't find a package.json file in your current directory.

npm ERR!可以在以下位置找到此运行的完整日志:

npm ERR! A complete log of this run can be found in:

npm ERR! /Users/divya/.npm/_logs/2017-09-12T03_05_20_995Z-debug.log

npm ERR! /Users/divya/.npm/_logs/2017-09-12T03_05_20_995Z-debug.log

消息:

我在当前工作目录中运行了安装,该目录有Package.json文件,但错误说package.json不存在。它显示的路径不正确 - /Users/divya/Desktop/MFP/mdo-windows-support/package.json。它必须是Users / divya / Desktop / MFP / nzrb-tab-mobilefirst / package.json。如何更改路径?

I ran the installation in the current working directory which has Package.json file but the error says the package.json doesn't exist. The path, it is showing is not right- "/Users/divya/Desktop/MFP/mdo-windows-support/package.json". It has to be "Users/divya/Desktop/MFP/nzrb-tab-mobilefirst/package.json". How do I change the path?

我不确定导致此问题的原因。非常感谢您的帮助/建议。

I am not sure what causing this issue. Much appreciated your help/suggestions.

推荐答案

无论您尝试使用哪种版本,npm版本都不支持IBM MobileFirst CLI。

IBM MobileFirst CLI is not supported in the npm version whatever you are trying with.

尝试使用npm版本 3.10.10 进行安装,这样可以解决您所面临的问题。

Try installing the same with npm version 3.10.10 and this should resolve the issue which you are facing.

这篇关于IBM Mobile First - mfpdev-cli安装失败的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆