<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>start.cli &#8211; FITSブログ</title>
	<atom:link href="https://blog.fits-inc.jp/tag/start-cli/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.fits-inc.jp</link>
	<description>Webシステムの受託開発でお困りなら</description>
	<lastBuildDate>Mon, 20 Jul 2020 08:38:18 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>

<image>
	<url>https://blog.fits-inc.jp/wp-content/uploads/2024/06/cropped-image-5-32x32.png</url>
	<title>start.cli &#8211; FITSブログ</title>
	<link>https://blog.fits-inc.jp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>NestJS 環境を Windows にセットアップした際に出たエラーのメモ</title>
		<link>https://blog.fits-inc.jp/2020/07/20/nestjs-%e7%92%b0%e5%a2%83%e3%82%92-windows-%e3%81%ab%e3%82%bb%e3%83%83%e3%83%88%e3%82%a2%e3%83%83%e3%83%97%e3%81%97%e3%81%9f%e9%9a%9b%e3%81%ab%e5%87%ba%e3%81%9f%e3%82%a8%e3%83%a9%e3%83%bc%e3%81%ae/</link>
		
		<dc:creator><![CDATA[FITS Admin]]></dc:creator>
		<pubDate>Mon, 20 Jul 2020 08:38:17 +0000</pubDate>
				<category><![CDATA[技術ブログ]]></category>
		<category><![CDATA[start.cli]]></category>
		<category><![CDATA[受託開発]]></category>
		<guid isPermaLink="false">https://blog.fits-inc.jp/?p=695</guid>

					<description><![CDATA[　NestJS 環境を Windows の WSL 上にセットアップした際にNestやらYarnが入って無くてエラーとなったので、同じような問題に出くわした人のためメモを残しておきます。なお、nodeとnpmは既にWSL [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">　NestJS 環境を Windows の WSL 上にセットアップした際にNestやらYarnが入って無くてエラーとなったので、同じような問題に出くわした人のためメモを残しておきます。なお、nodeとnpmは既にWSLにインストール済みで、WSLのコアとしてはubuntuを使用している前提です。</p>



<h2 class="wp-block-heading">NestJS をインストールしてない際に出るエラー</h2>



<p class="wp-block-paragraph">　Nestをインストールしてなければ下記のようなエラーが出ます。</p>



<figure class="wp-block-image size-large"><img fetchpriority="high" decoding="async" width="1024" height="140" src="https://blog.fits-inc.jp/wp-content/uploads/2020/07/nestコマンドが無い-1024x140.jpg" alt="" class="wp-image-696" srcset="https://blog.fits-inc.jp/wp-content/uploads/2020/07/nestコマンドが無い-1024x140.jpg 1024w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/nestコマンドが無い-300x41.jpg 300w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/nestコマンドが無い-768x105.jpg 768w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/nestコマンドが無い.jpg 1101w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>/bin/sh: 1: nest: not found
error Command failed with exit code 127.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.</code></pre>



<p class="wp-block-paragraph">　この場合は<br><a href="https://nest-simulator.readthedocs.io/en/nest-2.20.1/installation/">https://nest-simulator.readthedocs.io/en/nest-2.20.1/installation/</a><br>から nest をインストールします。</p>



<h2 class="wp-block-heading">Yarn をインストールしてない際に出るエラー</h2>



<p class="wp-block-paragraph">　nest のコマンドを実行した際に添付画像のようなエラーが出るのであれば yarn がインストールされていません。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="295" src="https://blog.fits-inc.jp/wp-content/uploads/2020/07/yarnに失敗する-1024x295.jpg" alt="" class="wp-image-697" srcset="https://blog.fits-inc.jp/wp-content/uploads/2020/07/yarnに失敗する-1024x295.jpg 1024w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/yarnに失敗する-300x86.jpg 300w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/yarnに失敗する-768x221.jpg 768w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/yarnに失敗する.jpg 1073w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>? Which pacage manager would you like to use?
Faild to execute command yarn install --silent
Installation in progess...
Package installation failed. see above</code></pre>



<p class="wp-block-paragraph">　この場合は<br><a href="https://classic.yarnpkg.com/ja/docs/install/#debian-stable
">https://classic.yarnpkg.com/ja/docs/install/#debian-stable<br></a>から yarn をインストールします</p>



<h2 class="wp-block-heading">start.cli によるエラー</h2>



<p class="wp-block-paragraph">　このエラーがメモを残そうと思った理由でもあります。nest コマンドを実行しようとしたところ、 &#8220;start.sli&#8221; に関するエラーが出ます。</p>



<figure class="wp-block-image size-large"><img decoding="async" width="1024" height="379" src="https://blog.fits-inc.jp/wp-content/uploads/2020/07/start.sliでエラー-1024x379.jpg" alt="" class="wp-image-698" srcset="https://blog.fits-inc.jp/wp-content/uploads/2020/07/start.sliでエラー-1024x379.jpg 1024w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/start.sliでエラー-300x111.jpg 300w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/start.sliでエラー-768x284.jpg 768w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/start.sliでエラー.jpg 1455w" sizes="(max-width: 1024px) 100vw, 1024px" /></figure>



<pre class="wp-block-code"><code>NEST nest-2.20.0 (C) 2004 The NEST Initiative

Jul 17 11:25:13 file &#91;Error]: FileOpenError
    Could not open the following file for reading: "start.sli".

Jul 17 11:25:13 MPIManager::finalize() &#91;Info]:
    Calling MPI_Abort() due to errors in the script.
----------------------------------------------------------------
MPI_ABORT was ivoked on rank 0 in communicator MPI_COMM_WORLD
with errorcode 126.

NOTE: invoking MPI_ABORT causes Open MPI to kill all MPI processes.
You may or may not see output from other processes. depending on
exactly when Open MPI kills them.
----------------------------------------------------------------
error Command failed with exit code 126.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.</code></pre>



<p class="wp-block-paragraph">　この現象については、手元環境ではプロジェクトディレクトリを削除し、npx コマンドを実行しなおすことで解消されました。<br>※100%解消する手法とは限りませんが</p>



<p class="wp-block-paragraph">　不具合が解消され実際にコマンドの実行に成功している画像は下記のとおりです。</p>



<figure class="wp-block-image size-large"><img loading="lazy" decoding="async" width="1024" height="353" src="https://blog.fits-inc.jp/wp-content/uploads/2020/07/再度npxから実行-1024x353.jpg" alt="" class="wp-image-699" srcset="https://blog.fits-inc.jp/wp-content/uploads/2020/07/再度npxから実行-1024x353.jpg 1024w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/再度npxから実行-300x104.jpg 300w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/再度npxから実行-768x265.jpg 768w, https://blog.fits-inc.jp/wp-content/uploads/2020/07/再度npxから実行.jpg 1165w" sizes="auto, (max-width: 1024px) 100vw, 1024px" /></figure>



<p class="wp-block-paragraph">　Windowsに初めてNestの開発環境を構築した際に遭遇したエラーは以上です。以降は通常通り開発できております。</p>



<h2 class="wp-block-heading">NestJSでの開発をご希望なら</h2>



<p class="wp-block-paragraph">　もし、宮城、仙台でNestJSを用いたWebシステムの開発をご希望であれば、是非FITSにお任せください。もちろん宮城県内や仙台市内に限らずリモートでの対応や、各種受託開発の無料相談や、お見積りご依頼へも対応しております。お問い合わせは下記よりどうぞ！<br><a href="https://www.fits-inc.jp/inquiry/">https://www.fits-inc.jp/inquiry/</a></p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
