<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>bluebirdofoz</author_name>
  <author_url>https://blog.hatena.ne.jp/bluebirdofoz/</author_url>
  <blog_title>MRが楽しい</blog_title>
  <blog_url>https://bluebirdofoz.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>本日はNode.jsの小ネタ枠です。 PowerShellでnpmコマンドの実行が失敗する問題の対処についてです。 事象 PowerShellでnpmコマンドを実行しようとすると「スクリプトの実行が無効になっている」エラーが発生します。 Node.jsはインストール済みでnodeコマンドは問題なく成功します。 またこのときコマンドプロンプトではnodeコマンド、npmコマンド共に問題なく動作します。 原因 エラー文の通り、スクリプトの実行を制限するポリシーとなっていることが原因です。 PowerShellはデフォルトでは全てのスクリプトの実行が制限される設定となっています。 対処 以下のSet…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fbluebirdofoz.hatenablog.com%2Fentry%2F2025%2F03%2F29%2F234714&quot; title=&quot;PowerShellでnpmコマンドの実行が失敗する問題の対処 - MRが楽しい&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/b/bluebirdofoz/20250329/20250329234621.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-03-29 23:47:14</published>
  <title>PowerShellでnpmコマンドの実行が失敗する問題の対処</title>
  <type>rich</type>
  <url>https://bluebirdofoz.hatenablog.com/entry/2025/03/29/234714</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
