javascript:yarn

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
次のリビジョン両方とも次のリビジョン
javascript:yarn [2023/02/08 14:17] – [Linux] ともやんjavascript:yarn [2024/03/04 05:16] – [node のインストール] ともやん
行 37: 行 37:
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> nodenv install 16.17.0+<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">nodenv</font> install 20.11.1
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-Downloading node-v16.17.0-linux-x64.tar.gz... +Downloading node-v20.11.1-linux-x64.tar.gz... 
--https://nodejs.org/dist/v16.17.0/node-v16.17.0-linux-x64.tar.gz +-&gt; https://nodejs.org/dist/v20.11.1/node-v20.11.1-linux-x64.tar.gz 
-Installing node-v16.17.0-linux-x64... +Installing node-v20.11.1-linux-x64... 
-Installed node-v16.17.0-linux-x64 to /home/tomoyan/.anyenv/envs/nodenv/versions/16.17.+Installed node-v20.11.1-linux-x64 to /home/tomoyan/.anyenv/envs/nodenv/versions/20.11.1
 </pre></html></WRAP> </pre></html></WRAP>
 +
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> nodenv rehash +<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">nodenv</font> rehash 
-<b class=GRN>$</b> nodenv global 16.17.0 +<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">nodenv</font> global 20.11.1 
-<b class=GRN>$</b> nodenv versions+<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">nodenv</font> versions
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-16.17.(set by /home/tomoyan/.anyenv/envs/nodenv/version)+20.11.(set by /home/tomoyan/.anyenv/envs/nodenv/version)
 </pre></html></WRAP> </pre></html></WRAP>
 +
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> node -v+<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">node</font> <font color="#75507B">-v</font>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-v16.17.0+v20.11.1
 </pre></html></WRAP> </pre></html></WRAP>
 +
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> npm -v+<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">npm</font> <font color="#75507B">-v</font>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-8.15.0+10.2.4
 </pre></html></WRAP> </pre></html></WRAP>
 +
 <WRAP color_command><html><pre> <WRAP color_command><html><pre>
-<b class=GRN>$</b> npm -g list+<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">npx</font> <font color="#75507B">-v</font>
 </pre></html></WRAP> </pre></html></WRAP>
 <WRAP color_result><html><pre> <WRAP color_result><html><pre>
-/home/tomoyan/.anyenv/envs/nodenv/versions/16.17.0/lib +10.2.4 
-├── corepack@0.12.1 +</pre></html></WRAP> 
-└── npm@8.15.0+ 
 +<WRAP color_command><html><pre> 
 +<font color="#FF8700"><b>$</b></font> <font color="#4E9A06">npm</font> <font color="#75507B">-g</font><font color="#999999"> list</font> 
 +</pre></html></WRAP> 
 +<WRAP color_result><html> 
 +<pre>/home/tomoyan/.anyenv/envs/nodenv/versions/20.11.1/lib 
 +├── corepack@0.23.0 
 +└── npm@10.2.4
 </pre></html></WRAP> </pre></html></WRAP>
 </WRAP> </WRAP>
行 1590: 行 1600:
  
 ===== トラブルシューティング ===== ===== トラブルシューティング =====
 +
 +==== error `--global` has been deprecated. ====
 +Yarn でのグローバルへのインストールは <html><code>yarn global add <package name></code></html> である🤔\\
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ yarn install @google-cloud/functions-framework -g
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +yarn install v1.22.19
 +info No lockfile found.
 +error `--global` has been deprecated. Please run "yarn global add @google-cloud/functions-framework" instead.
 +info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
 +</pre></html></WRAP>
 +</WRAP>
 +
 +<WRAP color_term>
 +<WRAP color_command><html><pre>
 +$ yarn global add @google-cloud/functions-framework
 +</pre></html></WRAP>
 +<WRAP color_result><html><pre>
 +yarn global v1.22.19
 +[1/4] Resolving packages...
 +[2/4] Fetching packages...
 +[3/4] Linking dependencies...
 +[4/4] Building fresh packages...
 +success Installed "@google-cloud/functions-framework@3.1.3" with binaries:
 +      - functions-framework
 +      - functions-framework-nodejs
 +Done in 9.32s.
 +</pre></html></WRAP>
 +</WRAP>
 +
 +==== その他 ====
 <code> <code>
 Vue CLI v4.5.9 Vue CLI v4.5.9
  • javascript/yarn.txt
  • 最終更新: 2024/03/04 05:50
  • by ともやん