npmコマンドでremix-ideをインストールしたい
解決したいこと
npmコマンドでremix-ideをインストールしたい
コマンドプロンプトでnpmコマンドを使い、remix-ideをインストールしたいのですが、エラーが発生します。
npm install remix-ide -g を実行した際の結果↓
npm install remix-ide -g
npm WARN deprecated circular-json@0.3.3: CircularJSON is in maintenance only, flatted is its successor.
npm WARN deprecated ecstatic@3.3.2: This package is unmaintained and deprecated. See the GH Issue 259.
changed 184 packages, and audited 185 packages in 51s
13 packages are looking for funding
run `npm fund` for details
11 moderate severity vulnerabilities
To address issues that do not require attention, run:
npm audit fix
To address all issues (including breaking changes), run:
npm audit fix --force
Run `npm audit` for details.
remix-ide を実行した際の結果↓
C:\Windows\system32>remix-ide
node:internal/modules/cjs/loader:361
throw err;
^
Error: Cannot find module 'C:\Users\rrryy\AppData\Roaming\npm\node_modules\remixd\lib\src\index.js'. Please verify that the package.json has a valid "main" entry
[90m at tryPackage (node:internal/modules/cjs/loader:353:19)[39m
[90m at Function.Module._findPath (node:internal/modules/cjs/loader:566:18)[39m
[90m at Function.Module._resolveFilename (node:internal/modules/cjs/loader:919:27)[39m
[90m at Function.Module._load (node:internal/modules/cjs/loader:778:27)[39m
[90m at Module.require (node:internal/modules/cjs/loader:1005:19)[39m
[90m at require (node:internal/modules/cjs/helpers:102:18)[39m
at Object.<anonymous> (C:\Users\rrryy\AppData\Roaming\npm\node_modules\[4mremix-ide[24m\bin\remix-ide:4:14)
[90m at Module._compile (node:internal/modules/cjs/loader:1101:14)[39m
[90m at Object.Module._extensions..js (node:internal/modules/cjs/loader:1153:10)[39m
[90m at Module.load (node:internal/modules/cjs/loader:981:32)[39m {
code: [32m'MODULE_NOT_FOUND'[39m,
path: [32m'C:\\Users\\rrryy\\AppData\\Roaming\\npm\\node_modules\\remixd\\package.json'[39m,
requestPath: [32m'remixd'[39m
}
自分で試したこと
githubからクローンしてインストールしようとしましたが、結局こちらもエラーが発生しています。
git clone https://github.com/ethereum/remix-ide.git
cd remix-ide
npm install
up to date, audited 1 package in 289ms
found 0 vulnerabilities
npm run setupremix
npm ERR! Missing script: "setupremix"
npm ERR!
npm ERR! To see a list of scripts, run:
npm ERR! npm run
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rrryy\AppData\Local\npm-cache\_logs\2022-01-16T10_40_54_606Z-debug-0.log
エラー文をgoogleで検索して、node.jsの再インストールなどを試したのですが、結果は変わらずでした。
どなたかお分かりになる方がいましたら教えていただけますと幸いです。
0 likes