簡體   English   中英

當我使用npm安裝solc編譯器時,為什么會有錯誤?

[英]why there are errors when i install solc compiler with npm?

與最新版本的NPM,但我無法成功安裝編譯器。

 ash@ubuntu:~/inbox$ node -v v8.11.1 ash@ubuntu:~/inbox$ npm -v 5.8.0 ash@ubuntu:~/inbox$ sudo npm install --save solc npm WARN saveError ENOENT: no such file or directory, open '/home/ash/inbox/package.json' npm WARN enoent ENOENT: no such file or directory, open '/home/ash/inbox/package.json' npm WARN webpack-cli@2.0.14 requires a peer of webpack@^4.0.0 but none is installed. You must install peer dependencies yourself. npm WARN inbox No description npm WARN inbox No repository field. npm WARN inbox No README data npm WARN inbox No license field. + solc@0.4.21 updated 1 package in 5.593s ash@ubuntu:~/inbox$ 

在此處輸入圖片說明

您正在嘗試安裝到項目目錄中,該目錄將嘗試更新項目的package.json文件以添加依賴項。 安裝仍然有效。 您可以在node_modules/solc下找到它。

更好的方法是全局安裝:

npm install -g solc

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM