javascripting icon indicating copy to clipboard operation
javascripting copied to clipboard

Can't run the workshop in window terminal

Open huang-xiaowei32 opened this issue 6 years ago • 8 comments

I have installed the npm and Node.js in Windows . And I have installed the module successfully. However, when I run the workshop by using Windows cmd, it shows "'javascripting' is not recognized as an internal or external command, operable program or batch file." And the ERRORLEVEL of it is 9009, which is a script execution error.

javascriptingcapture

Did anyone meet and solve this issue?

huang-xiaowei32 avatar Feb 15 '19 19:02 huang-xiaowei32

@sethvincent

huang-xiaowei32 avatar Feb 15 '19 20:02 huang-xiaowei32

@Violet-XiaoWeiHuang did you open cmd with Admin privileges? See: https://github.com/workshopper/javascripting#having-issues-with-installation

itzsaga avatar Feb 15 '19 21:02 itzsaga

Also, this could be an issue with your Node install and the npm install not being added to your PATH correctly. You can see #195 where they had the same error of javascripting' is not recognized as an internal or external command, operable program or batch file. Let us know if you figure it out and if not what you've tried and what errors you are still getting.

itzsaga avatar Feb 15 '19 22:02 itzsaga

Hi @itzsaga,

I use #195 to fix it. But it failed on my w10 Powershell. When I directed to C:\Users\monkey\AppData\Roaming\npm\node_modules\javascripting\bin where installs https://github.com/workshopper/javascripting/blob/567d4003cb9727dde30ac67adc2cfc657d4d4440/bin/javascripting#L1-L3 the executable file. After I run .\javascripting, it shows can t run the workshop in window terminal

And this javascripting file is not a .exe file and .exe file can be run in Windows. And this javascripting file is UNIX shell script. I think it could be another reason it fails on the Windows system.

huang-xiaowei32 avatar Mar 01 '19 03:03 huang-xiaowei32

Try installing gitbash for windows. It will solve your problem. https://gitforwindows.org/

ewerton-azevedo avatar Apr 01 '19 09:04 ewerton-azevedo

For reference, we run regularly run workshops using this workshopper in Lima and windows users always encounter issues... for most users, the terminal inside VSCode is the simplest solution :speak_no_evil:.

lupomontero avatar Jun 28 '19 21:06 lupomontero

it works on PowerShell for me, seems like Node installation issues image

a0viedo avatar Sep 13 '19 00:09 a0viedo

I am getting the following error when trying to load the javascript code: lanegold@Lanes-MacBook-Air lighthouse % npm install -g javascripting npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated [email protected]: no longer maintained npm WARN deprecated @hapi/[email protected]: Moved to 'npm install @sideway/address' npm WARN deprecated @hapi/[email protected]: This version has been deprecated and is no longer supported or maintained npm WARN deprecated @hapi/[email protected]: Switch to 'npm install joi'

changed 124 packages, and audited 125 packages in 1s

4 packages are looking for funding run npm fund for details

7 vulnerabilities (3 moderate, 4 high)

To address all issues, run: npm audit fix

Run npm audit for details. lanegold@Lanes-MacBook-Air lighthouse %

LaneGold avatar Jun 28 '22 20:06 LaneGold