Sorry for the Noob question
oshybrid opened this issue · comments
Since I was using an older version of the book, I backed out of the project and started from scratch.
I had issues with Heroku the first time around and decided to skip since I Was not planning to put this on the web.
I tried the Heroku deployment again this time, and again running into issues. But is more basic.
I am just confused why node is going to my root user account to try to look for a JSON file. Should it not be working all in the confines of this "platform" project?
% npm run deploy
npm ERR! code ENOENT
npm ERR! syscall open
npm ERR! path /Users/bradhutchins/package.json
npm ERR! errno -2
npm ERR! enoent ENOENT: no such file or directory, open '/Users/bradhutchins/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! /Users/bradhutchins/.npm/_logs/2020-10-18T18_24_03_196Z-debug.log
Log File
0 info it worked if it ends with ok
1 verbose cli [ '/Users/bradhutchins/.nvm/versions/node/v10.19.0/bin/node',
1 verbose cli '/Users/bradhutchins/.nvm/versions/node/v10.19.0/bin/npm',
1 verbose cli 'run',
1 verbose cli 'deploy' ]
2 info using npm@6.14.4
3 info using node@v10.19.0
4 verbose config Skipping project config: /Users/bradhutchins/.npmrc. (matches userconfig)
5 verbose stack Error: ENOENT: no such file or directory, open '/Users/bradhutchins/package.json'
6 verbose cwd /Users/bradhutchins/Documents/Elixir and Elm/platform
7 verbose Darwin 19.5.0
8 verbose argv "/Users/bradhutchins/.nvm/versions/node/v10.19.0/bin/node" "/Users/bradhutchins/.nvm/versions/node/v10.19.0/bin/npm" "run" "deploy"
9 verbose node v10.19.0
10 verbose npm v6.14.4
11 error code ENOENT
12 error syscall open
13 error path /Users/bradhutchins/package.json
14 error errno -2
15 error enoent ENOENT: no such file or directory, open '/Users/bradhutchins/package.json'
16 error enoent This is related to npm not being able to find a file.
17 verbose exit [ -2, true ]
Never mind I am stupid