Proudly powered by WordPress Now, run the code from your cmd promt with the following syntax: >node
C:\Users\admin\node_modules>ender info Welcome to ENDER - The no-library library C:\Users\admin\node_modules>`` So I cd'd into the ender-js directory (two levels up is the built version of ender.js and ender.min.js, which was generated Get the weekly newsletter! Microsoft Jscript Runtime Error 800a1391 srsgores commented Aug 8, 2012 Hey Peter. Microsoft Jscript Runtime Error 'window' Is Undefined When typing grunt -h Windows will proceed to look for the following files: ./grunt.cmd ./grunt.* (grunt.js is found in this case which is why you see "module is undefined") %APPDATA%/npm/grunt.cmd An
I only get this message when typing ender info or ender build with jeesh installed. his comment is here That's probably a problem with filetype associations; IIRC Windows defaults to trying to execute a ".js" file with WSH. Linked 6 OS-independent grunt script command in NPM package.json 0 How to run node from command prompt? Reload to refresh your session. 800a1391 Document Is Undefined
Clearly, Notepad++ is not the default action for this file type, or at least it isn't according to Filezilla. Add it to Gemfile. share|improve this answer answered Nov 7 '12 at 18:46 Spudley 119k29160245 In the preferences of FileZilla, I made it so that Notepad++ opens everytime I click "View/Edit" so that this contact form Very weird.
If I rename the file hellonode.js I can reproduce the same error: C:\>hellonode Or I can run the intended file via Node.js: C:\>node hellonode.js
Required fields are marked *Comment Name * Email * Website Post navigation Previous Previous post: Pipe array to Powershell scriptNext Next post: Middleman error - `block in replace_gem': middleman-cli is not share|improve this answer answered Feb 6 '13 at 2:08 johngeorgewright 418212 grunter has done the trick for me. –ThatAintWorking Feb 21 '13 at 20:25 add a comment| up vote Output the sign Help, my office wants infinite branch merges as policy; what other options do we have? Node Js Microsoft Jscript Runtime Error Why const_iterator could be used with std::map::erase Solutions for holding oscilloscope probes (and freeing up hands) more hot questions question feed lang-js about us tour help blog chat data legal privacy
You signed out in another tab or window. Are the mountains surrounding Mordor natural? P.S: Please reply back if this has helped in resolving your issue else post the problem you are facing after trying this. navigate here That lets you run ECMAScript programs under WSH: you can use ECMAScript as a Windows scripting language, in other words.
NOTE: This seems to also affect calling npm install pkg for a local folder. I would also add that you don't have to have a file without .js extension that calls the main .js: you only have to add the #!/usr/bin/env node to your binary I'm posting this again, because the file is not the problem. srsgores commented Aug 5, 2012 I'm running this on Windows 8 via the command line.
Please use our new forums at discuss.codecademy.com. Could you show me ? –StrugglingCoder Nov 29 '15 at 10:37 I certainly would if I could; I've never used Node on Windows. grunt need to open by default with (grunt.cmd). C:\Users\admin\node_modules>ender build jeesh Welcome to ENDER - The no-library library installing packages: "ender-js jeesh"...
I tested it with a simple hello world script. Are you attaching it to a web page? –jfrej Nov 7 '12 at 18:13 right clicking and clicking "View/Edit". If you see a WSH error, you're asking Windows to execute your ECMAScript under WSH. Can I do without?
share|improve this answer answered Nov 7 '12 at 18:42 jfrej 3,2901327 add a comment| Your Answer draft saved draft discarded Sign up or log in Sign up using Google Sign The error message I'm getting is: Line: 5 Char: 1 Error: 'document' is undefined Code: 800A1391 Source: Microsoft JScript Runtime Error Is there any idea on how to resolve this? -- Contributor smikes commented Nov 11, 2014 Can reproduce with [email protected] on Windows 7, using Powershell. Where should a galactic capital be?
Here's the .cmd file created: "%~dp0\node_modules\newsletter-builder\bin" %* Here's what installing from the NPM repository yields when installing bower: @IF EXIST "%~dp0\node.exe" ( "%~dp0\node.exe" "%~dp0\node_modules\bower\bin\bower" %* ) ELSE ( node "%~dp0\node_modules\bower\bin\bower" %* Get the weekly newsletter! Browse other questions tagged node.js or ask your own question.