Open SamuelCheng123 opened 2 years ago
npm run ganache:optimism-mainnet-fork npm run test:unit
error:
Error: Cannot find module 'C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\test\unit-tests\*.ts' Require stack: - C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\node_modules\mocha\lib\mocha.js - C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\node_modules\mocha\index.js - C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\build\cli.bundled.js at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15) at Function.Module._load (node:internal/modules/cjs/loader:778:27) at Module.require (node:internal/modules/cjs/loader:1005:19) at require (node:internal/modules/cjs/helpers:102:18) at C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\node_modules\mocha\lib\mocha.js:390:36 at Array.forEach (<anonymous>) at Mocha.loadFiles (C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\node_modules\mocha\lib\mocha.js:387:14) at Mocha.run (C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\node_modules\mocha\lib\mocha.js:961:10) at C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\build\webpack:\packages\core\lib\testing\Test.js:157:1 at new Promise (<anonymous>) at Object.run (C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\build\webpack:\packages\core\lib\testing\Test.js:156:1) at runMicrotasks (<anonymous>) at processTicksAndRejections (node:internal/process/task_queues:96:5) at Object.module.exports [as run] (C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\build\webpack:\packages\core\lib\commands\test\run.js:56:1) at Command.run (C:\Users\Samuel Cheng\Desktop\solidity\W4\Opyn mainnet fork\GammaProtocol\node_modules\truffle\build\webpack:\packages\core\lib\command.js:189:1) Truffle v5.4.29 (core: 5.4.29) Node v16.13.1
感覺像是某個文件的設定沒弄好
yarn install 跑完有出錯嗎? 通常要盡量避免路徑裡出現空格,Opyn mainnet fork -> OpynMainnetFork,因為有些實作方法遇到路徑名稱裡有空白會有問題,但你 user name 裡就有一個空格 XD" 這比較難改
Optimism mainnet fork
error:
感覺像是某個文件的設定沒弄好