0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

powershellでのbabel実行について

Last updated at Posted at 2022-04-12

powershellでハマった。
原因:実行ポリシーが初期値のままだから。

対処:vscodeで実行したいディレクトリに移動したうえで以下のコマンドを実行した。
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope Process

その後確認してみるためのコマンドは以下の通り
Get-ExecutionPolicy
→RemoteSignedと出力される

そのうえでbabelを実行しトランスパイルを実行する
.\node_modules.bin\babel input.js --out-file output.js

以上

参考:
https://qiita.com/ponsuke0531/items/4629626a3e84bcd9398f

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?