我正面临着错误
npx @nestjs/cli rest_of_command_here
我也尝试过使用-g标志-g
sh: 1: nest: not found
我尝试过nest Command not found的答案,但它不起作用,因为我面临一个新的问题,它说
bash: /usr/local/Cellar/node/11.9.0/bin/nest: No such file or directory
节点版本16.13.2
npm版本8.1.2
发布于 2022-06-10 11:14:21
问题是,如果将npm/yarn
变量设置为生产,NODE_ENV
就不会安装NODE_ENV
。
我通过从应用程序配置中删除NODE_ENV
来解决这个问题,并在运行特定构建脚本之前添加了NODE_ENV=production
。
https://stackoverflow.com/questions/70860030
复制相似问题