html2md
html2md copied to clipboard
本地部署,运行npm run dev失败,求救
root@-unknown253489:/home/tangchangxu/html2md# npm run dev npm WARN invalid config proxy="" npm WARN invalid config Must be a full url with 'http://'
[email protected] dev /home/tangchangxu/html2md cross-env ENV=dev node server --watch server
sh: cross-env: command not found
npm ERR! [email protected] dev: cross-env ENV=dev node server --watch server
npm ERR! Exit status 127
npm ERR!
npm ERR! Failed at the [email protected] dev script.
npm ERR! This is most likely a problem with the hello-html2md package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! cross-env ENV=dev node server --watch server
npm ERR! You can get their info via:
npm ERR! npm owner ls hello-html2md
npm ERR! There is likely additional logging output above.
npm ERR! System Linux 3.16.0-4-amd64
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "run" "dev"
npm ERR! cwd /home/tangchangxu/html2md
npm ERR! node -v v0.10.29
npm ERR! npm -v 1.4.21
npm ERR! code ELIFECYCLE
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! npm ERR! Additional logging details can be found in: npm ERR! /home/tangchangxu/html2md/npm-debug.log npm ERR! not ok code 0
@Soupure 解决办法很简单,安装一下 cross-env 即可。
npm install cross-env --save-dev
还是不行
@Soupure 看到了,你的node版本太低了