LoginSignup
0
0

More than 5 years have passed since last update.

windowsでsolcjsでno such fileエラーの解決方法

Posted at

はじめに

windowsでのsolidity開発の情報って少ないですよね。。
解決策というほど大げさなものじゃないですが、少しハマってしまったので一応メモしておきます。

エラーについて

solcjsを使ってsolファイルをコンパイルしてabiファイルを作成できるのですが、
以下のようにするとエラーになっちゃうんですよね。
コマンド
solcjs .\hoge.sol --abi
エラー
Error: ENOENT: no such file or directory

解決策

シンプルすぎてアレですが、「.\」の部分が原因だったようで、
solcjs hoge.sol --abi
ってやると正常にコンパイルが完了してabiファイルを作成できます。

おわりに

Solidityに限らず開発系の情報はMacの方が多いですよね。
次PC買い替えるときはMacにしようと思いました。

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