样板无法在Windows 10 + Ubuntu 18.04中启动

问题描述 投票:0回答:1

我正在使用:节点:v10.16npm:6.9

[email protected] start H:\count
cross-env NODE_ENV=development node server

'cross-env' is not recognized as an internal or external command,
operable program or batch file.
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: cross-env NODE_ENV=development node server
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start 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! C:\Users\Administrator\AppData\Roaming\npm-cache_logs\2019-10-24T07_43_09_568Z-debug.log
node.js exit status react-boilerplate
1个回答
1
投票

您需要安装cross-env才能使用它:npm i -g cross-env

© www.soinside.com 2019 - 2024. All rights reserved.