我正在尝试在 Ubuntu 上部署 Angular 2 应用程序,但在运行 npm start
时出现此错误
> webpack-dev-server --inline --progress --port 8080
npm ERR! weird error 1
npm WARN This failure might be due to the use of legacy binary "node"
npm WARN For further explanations, please read
/usr/share/doc/nodejs/README.Debian
npm ERR! not ok code 0
不仅如此,我在任何地方都找不到关于如何使用 webpack 部署 Angular 2 应用程序的文档,甚至在 Angular.io 上也找不到
我尝试部署的代码可以在这里找到:https://angular.io/docs/ts/latest/guide/webpack.html
任何帮助表示赞赏
最佳答案
试试这个link我认为这是stackoverflow的副本
sudo apt-get install nodejs-legacy
关于linux - 部署 Webpack Angular 2 应用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38729309/