2021年10月20日水曜日

【node】The engine "node" is incompatible with this module. Expected version ">=10". Got "8.11.3"

 yarn installを行うと「The engine "node" is incompatible with this module. Expected version ">=10". Got "8.11.3"」のエラーがでて困ってました。

調べてみると、

yarn install --ignore-engines

 で行うとうまく行きました。

 

【参考URL】

https://juejin.cn/post/6844903785710485518


【node】 Sorry, there's a problem with nodist. Couldn't resolve version spec %s: %s 14.17.1 Couldn't find any matching version

 上記エラーでの対応方法を調べてみました。

(1) nodistでバージョン確認

  14.17.1がない場合は(2)でnodeインストール

(2) nodist + 14.17.1

   node -v で14.17.1であることを確認

(3) nodist npm match

   npm -v でバージョンを確認


【参考URL】

https://qiita.com/rnnrn/items/c36b57d20aa374a0e46f

 

 

Sorry, there's a problem with nodist. Couldn't resolve npm version spec match : Couldn't find any matching version

上記メッセージの場合は、下記サイトに記載している「nodist npm match」でnpmインストールで解決できました。

https://teratail.com/questions/349087 

 

module not found can't resolve

 エラー内容的には、ディレクトリがないというエラーなので、importで指定したディレクトリを確認する(誤字)

https://teratail.com/questions/288380

 

2021年10月10日日曜日

【HTML】POSTリクエストを実行する

 HTMLファイルで、POSTリクエスト実行するサンプルです。

 

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Post Test</title>
</head>
<body>

<form name="f1" method="POST" action="https://aaa.co.jp/web/Login">
clientCD<br>
<input type="text" name="id" value="00000225"><br>
passwd<br>
<input type="text" name="passwd" value="zUT0cOtED5ifg3NkY7LAAA==" ><br>
keyLifeTime<br>
<input type="text" name="lifeTime" value="20221020202923"><br>
<br>
<input type="submit" value="Submit">
</form>
</body>
</html> 



 【参考URL】

https://www.upken.jp/kb/QfdSQLrcmikTFlXgcrWgzBGpPLJRFQ.html 

https://developer.mozilla.org/ja/docs/Learn/Forms/Sending_and_retrieving_form_data 

 

POSTとGETの違い

https://qiita.com/kanataxa/items/522efb74421255f0e0a1

 

JavaScriptでURL表示する

https://morizyun.github.io/javascript/location-href.html