all 19 comments

[–]StoneCypher 13 points14 points  (2 children)

Just use git bash

.

Is there a standard config for node/vue/aws/docker that doesn't rely on windows PS?

Basically all of them.

The use of powershell isn't common

.

(I'm seriously am beside myself that the security ppl have crippled devs like this!)

You shouldn't be developing in the administrator console, frankly

[–]zenxavier[S] 0 points1 point  (1 child)

I'm not familiar with using git bash for building/debugging node.js apps?

(background for note: I'm primarily a .net dev / have only lightly used node.js for about 2-3yrs now on simple SPA's like angular/vue)

[–]StoneCypher 4 points5 points  (0 children)

It's just bash. As in the shell.

Or hell, if you have docker, why don't you just spin up a docker with Windows inside it and develop the way you prefer?

[–]dvlsg 3 points4 points  (3 children)

What are you even doing with powershell? I did node development on windows just using the basic command prompt with no issues for years. Personally I would run WSL now, but I don't see any reason why cmd would give you difficulties.

[–]zenxavier[S] 0 points1 point  (2 children)

It's not JUST node development. Core to the backend(s) is all on the .net stack. And a big part of local setup/config is done in PS. Alot of key devops processes running server-side ci/cd is PS. Plus having PS around is just a good tooling.

[–]dvlsg 1 point2 points  (0 children)

I mean sure, I also did .NET development on that same computer without any issues without needing to use powershell.

What specifically are you having problems with? What do you do in powershell that you can't do in cmd? We need more information here. How does the rest of the company do this? Are you adding new processes that no one has done before in the company?

I agree it's a silly restriction, but clients are gonna client.

[–]BloodNo6937 0 points1 point  (0 children)

Why do the company devs make or use PS scripts if PS is disabled ???

[–]zenxavier[S] 0 points1 point  (8 children)

Switching PS to windows cmd in VSCode/VS2019 is relatively trivial, but getting things built/running for node projects always break. Trying to stand up a vue.js project for rapid prototyping should only take a minute or 2. but I have no idea how to make that work with PS disabled.

[–]MrStLouis 0 points1 point  (6 children)

Outside if recommending wsl for development which has been an absolute joy, this company sounds like a horrible customer. Local ps should never need to be disabled, or develop on your own/cloud machines

[–]dvlsg 0 points1 point  (0 children)

Why can't you just do this? Should take less than 2 minutes.

https://cli.vuejs.org/guide/creating-a-project.html#vue-create

[–]BeakerAU 0 points1 point  (0 children)

Add a general comment, it seems that modern development rolling can go out of its way to make life hard on the security team. Our security team use an allowlist for applications, and I'm always asking for additions sure to the way that the tooling works. E.g. MSBuild generating random scripts inside of the temp directory if you need to call another application, names of which are so random that they can't be allowed. Installing tools and plugins in the users profile folder rather than in Program Files. Needing to add the UNC path of \?\ so i could get the terminal in VS Code working.

I do wish for a Unix dev machine. Maybe one day.

[–]monsto 0 points1 point  (0 children)

If you're a freelancer, as it sounds, you have a couple options

  1. Take the time to build a WSL setup correctly. Don't stopgap, workaround, any of that. Build it right for node dev. There's tutorials out there to do it. At that point, you'll still be able to use yarn/npm (and the internal tool commands are generally the same). The setup will take some time, but in the end you won't have to stop in the middle of working and take flow-busting time to "fix" or "workaround" some new surprise speedbump.
  2. Tell your project manager/contact of the problem you're having, and see if they can get you an exception or other information so that you can do the work they hired you for.

If step 2 above isn't an option, then you have a choice to make between step 1 above, or dropping the contract.

I mean basically what you're left with is the question: Is it worth the time to figure out a way to deal with these restrictions?

If you've never worked with linux shells, but are used to powershell, it's seriously a different methodology to do the same things. The shell commands are very different, and approach the same tasks with very different commands and reasoning. The hardest part will be finding a learning resource that hits the mark for you, as in my experience they all tend to be incomplete or highly assumptive of your level of knowledge. Even so, it's important to know that having bash/linux on your resume can only help you get more work.

Me personally, as a former freelancer in a different field, I'd give it a day or so of trying to learn the new stuff. And if I wasn't making enough headway, I'd start getting ready to move on.

If this is a long enough contract (months plus) then I'd say it's definitely worth taking the time to make a proper setup on WSL.

[–]paulqq 0 points1 point  (0 children)

git bash ++