netlify / netlify-statuskit

Netlify StatusKit is a template to deploy your own Status pages on Netlify.
https://www.netlify.com/status-pages/
MIT License
238 stars 41 forks source link

Cant create new indent with npm #36

Closed RealGrim closed 6 years ago

RealGrim commented 6 years ago

How do you create a issue i tried everything

steveoh commented 6 years ago

did you try npm run new-incident and what version of npm etc are you using? Did you npm install first? GIve some details

RealGrim commented 6 years ago

Yes i instaled github on my pc (I allready had git installed) then i installed npm and opend it in npm and yea i did run npm run new-incident but it just said this : npm should be run outside of the node repl, in your normal shell. (Press Control-D to exit.)

steveoh commented 6 years ago

So if you are in Windows open the cmd.exe and run it. What are you running it from now? Powershell?

RealGrim commented 6 years ago

Yes sorry for the late reply when i type npm in the search bar it comes up with node thats what im useing

steveoh commented 6 years ago

then your setup is wrong. when you type npm it should print the npm cli options. Something like

$ npm

Usage: npm <command>

where <command> is one of:
    access, adduser, bin, bugs, c, cache, completion, config,
    ddp, dedupe, deprecate, dist-tag, docs, doctor, edit,
    explore, get, help, help-search, i, init, install,
    install-test, it, link, list, ln, login, logout, ls,
    outdated, owner, pack, ping, prefix, profile, prune,
    publish, rb, rebuild, repo, restart, root, run, run-script,
    s, se, search, set, shrinkwrap, star, stars, start, stop, t,
    team, test, token, tst, un, uninstall, unpublish, unstar,
    up, update, v, version, view, whoami

If you type npm -v you should see 5.6.0 or something like that.

When you type node you should enter the node repl. And node -v should show v9.3.0 or something like that.

RealGrim commented 6 years ago

Is there a youtube vid that you can find how to do this

RealGrim commented 6 years ago

Ok yes when i use node.js in command promt it does show the availabe commands

steveoh commented 6 years ago

Its reading like your node and npm are backwards.

RealGrim commented 6 years ago
capture
steveoh commented 6 years ago

ok so type npm run new-incident

ps: do this from within the status-kit website folder

pps: you'll have to run npm install in that folder as well.

RealGrim commented 6 years ago

npm ERR! path C:\Users\Drew.DESKTOP-QR5AGAE\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:\Users\Drew.DESKTOP-QR5AGAE\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\Drew.DESKTOP-QR5AGAE\AppData\Roaming\npm-cache_logs\2017-12-14T21_31_08_865Z-debug.log

RealGrim commented 6 years ago

Ok how do i do that?

RealGrim commented 6 years ago

How do i do it wihtin the status kit online folder

RealGrim commented 6 years ago

Ok its still not working i do know how to do it within the status kit folder

steveoh commented 6 years ago

Come talk in gitter. You need a lot of help. @verythorough close this because homer is super confused. Maybe update the docs that the cli is only for local dev or something?

RealGrim commented 6 years ago

Ok thank you