vmars316

Image from origin 'file://' has been blocked from loading

Recommended Posts

Btw , I do know the windows command line . That's not the issue .
But I did forget how to redirect all output to a file.
Ok , I'll try it again :

Perhaps you could help me with my Start-nodejs.bat setup .
Here is my Start-nodejs.bat file :

echo on > Nodejs-test01.txt 2>&1
rem comment Here is nodejs Foledr : C:\Program Files (x86)\NodeJS
rem comment Here is my Testing Folder : C:\pixi.js\bin\httppixijs.github.io
rem comment Here is my C:\pixi.js\bin\httppixijs.github.io\Start-nodejs.bat :

cd C:\Program Files (x86)\NodeJS
nodejs.exe
pause
node -v
pause
cd C:\pixi.js\bin\httppixijs.github.io
127.0.0.1:8080\C:\pixi.js\bin\httppixijs.github.io/truth02-WIP.html
pause

 

Thanks..

Share this post


Link to post
Share on other sites
9 minutes ago, ivan.popelyshev said:

THIS needs to be executed one time:


npm install -g http-server

Bat file:


rem opening browser
start http://127.0.0.1:8080/
rem starting server at the same time
rem no pause needed
http-server -c-1

From the   


npm install -g http-server

I get error  "npm should be run outside of the node repl, in your normal shell"

What shall I do next ?

 

9 minutes ago, ivan.popelyshev said:

 

 

Share this post


Link to post
Share on other sites
23 hours ago, ivan.popelyshev said:

Dont start it in powershell. Open your folder in explorer, "file"->"open command line here" , then type "node -v" , and it will show the version. If you dont know how to work with windows command line, you wont succeed with other web-servers too. Excuse me, but that stuff is one of basic things you have to know as a coder.

I responded to this yesterday .

Anyone know what happened to it ?

And here is the Post I responded to: 

THIS needs to be executed one time:

npm install -g http-server

Bat file:

rem opening browser
start http://127.0.0.1:8080/
rem starting server at the same time
rem no pause needed
http-server -c-1

From the   

npm install -g http-server

I get error  "npm should be run outside of the node repl, in your normal shell"

What shall I do next ?

Share this post


Link to post
Share on other sites

Ok , i got this thing going with 2 .bat files :

1) Start-node.exe.bat.bat
rem comment I am Start-node.exe.bat.bat
"Start-node.exe.bat">Nodejs-test01.txt 2>&1

2) Start-node.exe.bat
rem comment I am Start-node.exe.bat
rem comment Here is nodejs Foledr : C:\Program Files (x86)\NodeJS
rem comment Here is my Testing Folder : C:\pixi.js\bin\httppixijs.github.io
rem comment Here is my C:\pixi.js\bin\httppixijs.github.io\Start-node.exe.bat.bat :

cd C:\Program Files (x86)\NodeJS
node.exe

3) Nodejs-test01.txt (output log)

C:\pixi.js\bin\httppixijs.github.io>rem comment I am Start-node.exe.bat 

C:\pixi.js\bin\httppixijs.github.io>rem comment Here is nodejs Folder : C:\Program Files (x86)\NodeJS 

C:\pixi.js\bin\httppixijs.github.io>rem comment Here is my Testing Folder : C:\pixi.js\bin\httppixijs.github.io 

C:\pixi.js\bin\httppixijs.github.io>rem comment Here is my C:\pixi.js\bin\httppixijs.github.io\Start-node.exe.bat.bat : 

C:\pixi.js\bin\httppixijs.github.io>cd C:\Program Files (x86)\NodeJS 

C:\Program Files (x86)\NodeJS>node.exe
> ReferenceError: v is not defined
    at repl:1:2
    at REPLServer.defaultEval (repl.js:248:27)
    at bound (domain.js:287:14)
    at REPLServer.runBound [as eval] (domain.js:300:12)
    at REPLServer.<anonymous> (repl.js:412:12)
    at emitOne (events.js:77:13)
    at REPLServer.emit (events.js:169:7)
    at REPLServer.Interface._onLine (readline.js:210:10)
    at REPLServer.<anonymous> (readline.js:340:12)
    at Array.forEach (native)
> ^C


As you can see node.exe still doesn't like "-v" . 

So , I 
1) downloaded Brackets  
2) clicked Install 
3) clicked on Brackets desktop icon , and Voila! .
Every thing works , including "Live Preview" .

So , I am done with Nodejs .
Thanks for your help though .

Now I can get back to PixiJs

...Vern

Share this post


Link to post
Share on other sites
Quote

So , I 
1) downloaded Brackets  
2) clicked Install 
3) clicked on Brackets desktop icon , and Voila! .
Every thing works , including "Live Preview" .

So , I am done with Nodejs .

I'm not sure how to break it to you but I'm afraid you are not done with Node :) Not if you're using Brackets anyway.

Good luck to you

Share this post


Link to post
Share on other sites

To me , That's kind of vague Matt .
But , I think you mean that Brackets uses Nodejs .
That's not a problem with me .  I have nothing against Nodejs .
The problem is , all the hastle involved getting Nodejs , by itself , up and running . 
I am more of a freeware programmer (clipFind/ClipFind http://www.portablefreeware.com/index.php?id=2333 ) .
And my BenghaziGame is more of a political satire than a game . 
And I have a few more ideas for simple 2D shooter games along those lines .
So I don't want to spend much time on getting bogged down in the learning process . 

Anyways , thanks ALL for your help . 
...Vern

Btw: For me , why does this Posting-Editor cause my Posts to use Double-spacing .
To get singleline-spacing , I have to write it in Notepad , then copy and paste it into the Posting-Editor .
Am I doing something wrong .
 

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

  • Recently Browsing   0 members

    No registered users viewing this page.