我安装了jhipster
项目,但是当我运行命令yarn时,它显示以下错误:
F:\projectname\node_modules\enhanced-resolve\lib\Resolver.js:48 resolveStep: withName("resolveStep", new SyncHook(["hook", "request"])),
^
TypeError: SyncHook is not a constructor
at new Resolver (F:\projectname\node_modules\enhanced-resolve\lib\Resolver.js:48:41)
at Object.exports.createResolver (F:\projectname\node_modules\enhanced-resolve\lib\ResolverFactory.js:107:14)
at Object.<anonymous> (F:\projectname\node_modules\enhanced-resolve\lib\node.js:20:39)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.