imfunniee / gitfolio

:octocat: personal website + blog for every github user

Home Page:https://imfunniee.github.io/gitfolio/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting ' no such file or directory, open 'C:\git\gitfolio\myUsername\package.json' when building

1RedOne opened this issue · comments

Hi!

I clone the repo down, ran npm i to install all packages but then when I try to build, it looks like the build script is looking for a nonexistent folder?

C:\git\gitfolio>npm build --dark --name 1RedOne
npm ERR! path C:\git\gitfolio\1RedOne\package.json
npm ERR! code ENOENT
npm ERR! errno -4058
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open 'C:\git\gitfolio\1RedOne\package.json'
npm ERR! enoent This is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\Stephen\AppData\Roaming\npm-cache\_logs\2019-05-19T15_23_32_664Z-debug.log

I do have a package.json file in the root of the repository though.

type package.json
{
  "name": "gitfolio",
  "version": "0.1.1",
  "description": "portfolio website for showcasing your work",
  "main": "build.js",
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "imfunny",
  "license": "ISC",
  "dependencies": {
    "commander": "^2.20.0",
    "github-emoji": "^1.1.0",
    "got": "^9.6.0",
    "jsdom": "^15.0.0"
  }
}

This happens in Node.js 10.15.3 on Windows 10's newest version.

commented

node not npm

node build --dark --name 1RedOne

LMAO, I am so, so sorry. I'll close the door behind me on my way out.