执行:
npm install vis --save
npm install @types/vis --save-dev
我只是将visjs添加到我的节点模块中,所以现在我想使用visjs。 但是当我尝试使用"纱线启动"启动项目时,错误会跳转:
module.js:471
throw err;
^
Error: Cannot find module '/Users/eduardo/idea/planning/node_modules/webpack-dev-server/bin/webpack-dev-server.js'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:383:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:496:3
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.
知道为什么会这样吗?将Visjs添加到我的jhipster项目的正确方法是什么?
谢谢!