error when running npm start- maybe a newbe problem
Closed this issue · 5 comments
getting:
'nodewebkit' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! @ start: nodewebkit
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the @ start script.
npm ERR! This is most likely a problem with the package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! nodewebkit
npm ERR! You can get their info via:
npm ERR! npm owner ls
npm ERR! There is likely additional logging output above.
npm ERR! System Windows_NT 6.1.7601
npm ERR! command "C:\Program Files\nodejs\node.exe" "C:\Program Files\nod
ejs\node_modules\npm\bin\npm-cli.js" "start"
npm ERR! cwd C:\projects\nodeProject\clientNode\GuiClient
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.14
npm ERR! code ELIFECYCLE
npm ERR!
npm ERR! Additional logging details can be found in:
npm ERR! C:\projects\nodeProject\clientNode\GuiClient\npm-debug.log
npm ERR! not ok code 0
my folder structure:
C:\projects\nodeProject\clientNode\GuiClient\node_modules\nodewebkit\bin
autobump
nodewebkit
both of type file
Did you install it globally with npm i nodewebkit -g
? That should give access to a nodewebkit
command globally.
Otherwise if you installed locally (npm i nodewebkit
, preferred) you can do:
{
"name": "myproject",
"scripts": {
"start": "nodewebkit"
}
}
and run npm start
.
I installed it globally now, however now i get a window titled 'cannot run package' with the message:
'Invalid package.json Field 'main' is required error'
any clue?
Did you specify a main? https://github.com/rogerwang/node-webkit/wiki/Getting-Started-with-node-webkit
oops, it is working now.
thanks!!!!