【发布时间】:2020-01-12 19:27:34
【问题描述】:
在我的项目中,我使用 Parcel 来捆绑所有内容。现在,我需要部署我的应用程序。 我用我的 React 应用程序克隆了我的 git repo 并放入了 Node 服务器。
我尝试了所有可能的命令来安装包裹,但我总是收到以下错误:
> pp-react@0.1.0 build /home/volodymk/react
> parcel build index.html
sh: parcel: command not found
npm ERR! code ELIFECYCLE
npm ERR! syscall spawn
npm ERR! file sh
npm ERR! errno ENOENT
npm ERR! pp-react@0.1.0 build: `parcel build index.html`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the pp-react@0.1.0 build script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! /home/volodymk/.npm/_logs/2020-01-12T19_26_22_634Z-debug.log
我该如何解决这个问题?
【问题讨论】: