npm install:npm无法在当前目录中找到package.json文件

时间:2017-06-21 13:40:51

标签: npm phoenix-framework

最近,当我试图在凤凰应用中运行UIViewController时,我发现了这个错误:

npm install

但是,当我查看deps / phoenix时,肯定有一个package.json文件。

这是主要应用程序的package.json:

npm ERR! path /Users/sam/Projects/xxxx/xxxx/file:deps/phoenix/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/sam/Projects/xxxx/xxxx/file:deps/phoenix/package.json'
npm ERR! package.json npm can't find a package.json file in your current directory.

和deps / phoenix / package.json:

{
  "repository": {},
  "license": "MIT",
  "scripts": {
    "deploy": "brunch build --production",
    "watch": "brunch watch --stdin"
  },
  "dependencies": {
    "phoenix": "file:deps/phoenix",
    "phoenix_html": "file:deps/phoenix_html"
  },
  "devDependencies": {
    "babel-brunch": "~6.0.0",
    "brunch": "2.10.9",
    "clean-css-brunch": "~2.0.0",
    "css-brunch": "~2.0.0",
    "sass-brunch": "2.10.4",
    "elm-brunch": "^0.9.0",
    "javascript-brunch": "~2.0.0",
    "uglify-js-brunch": "~2.0.1"
  }
}

0 个答案:

没有答案