错误是这样的:
$ truffle migrate
C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\command.js:120
callback(err);
^
SyntaxError: Invalid regular expression: /C:\Users\ADMIN\AppData\Roaming\npm\node_modules\/: \ at end of pattern
at new RegExp (<anonymous>)
at C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\cli.js:93:1
at Command.run (C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\lib\command.js:120:1)
at Object.<anonymous> (C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\packages\truffle-core\cli.js:54:1)
at __webpack_require__ (C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap 5543b191bb2cde506945:19:1)
at C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\webpack:\webpack\bootstrap 5543b191bb2c06945:65:1
at Object.<anonymous> (C:\Users\ADMIN\AppData\Roaming\npm\node_modules\truffle\build\cli.bundled.js:71:1 at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Function.Module.runMain (internal/modules/cjs/loader.js:754:12)
at startup (internal/bootstrap/node.js:283:19)
at bootstrapNodeJSCore (internal/bootstrap/node.js:622:3)
我尝试了松露迁移--reset