首页 > 编程语言 >git Bash 执行 node npm run prod 执行报错?

git Bash 执行 node npm run prod 执行报错?

时间:2023-10-20 13:12:45浏览次数:31  
标签:node npm git run 执行 报错 prod

在本地执行
`
npm run prod

prod
npm run production

'npm' is not recognized as an internal or external command,
operable program or batch file.
`

大概意思是npm没有配置全局变量 访问 本地已经配置过了 最后不用 git bash去执行命令 就能成功

用的 window powershell 就能成功 真是大无语事件

标签:node,npm,git,run,执行,报错,prod
From: https://www.cnblogs.com/tiantianyang/p/17776830.html

相关文章

  • Sitecore 里删除 Item 报错 Could not create SSL/TLS secure channel.
    解决方法:前往mmc里添加你的域名win+r输入mmc打开下图面板;......
  • electron打包报错的解决方法
    报错信息:AnunhandledrejectionhasoccurredinsideForge:Error:Failedwithexitcode:1���ڳ��Դӡ�eletest.nuspec�����ɳ������Authorsisrequired.Descriptionisrequired.atChildProcess.<anonymous>(C:\WWW\eletest\node_modules\electron-winstaller\li......
  • ansibles 报错
    ansibles连接报错1:"changed": false,     "msg": "Authentication or permission failure. In some cases, you may have been able to authenticate and did not have permissions on the remote directory. Consider changing the remote t......
  • docker exec 报错 decoding init error from pipe caused \"read parent: connection
    复现方法,限制容器内pid个数dockerrun--pids-limit=1000 -dcentossleep100000dockerexec-itidbash  3.执行 foriin $(seq12000);do(sleep100&);done[root@host-226~]#dockerstatseaecCONTAINER      CPU%      ......
  • NodeJS之父Ryan Dahl:我不想被认为是一个JavaScript专家
    NodeJS之父RyanDahl:我不想被认为是一个JavaScript专家    被称为Node之父的RyanDahl在2012年离开了Node项目,后来加入Google的Brain团队,从事深度学习方面的研究,主要专注在图像的着色和超解像技术上。拥有深厚数学功底的Ryan经历了从Web开发到深度学习的跨越,还主导了......
  • 如何保护价值上千万的Node.js源代码?
    如何保护价值上千万的Node.js源代码?https://zhuanlan.zhihu.com/p/843864561|0一个强大的JS混淆器。github.com/javascript-obfuscator/javascript-obfuscator2|0一套JS代码安全问题解决方案。www.jshaman.com3|0一个极简的Node.js字节码编译器。github.com/OsamaAbbas/byte......
  • 记一次在服务器上运行node.js程序时无法通过nohup xxx & 方式挂起的问题
       由于业务需求每天要在服务器上整理一组数据,为了方便就用node.js来写了。但是运行的时候发现了一个问题明明使用了nohupmain.js&的方式后台运行了程序但是一旦我关闭了shell控制台这个后台运行的程序也会跟着终止掉,不知道是什么原因,于是采用forever.js的方式来运行......
  • linux centos7 部署 nodejs 的 express
      链接:https://www.youtube.com/watch?v=oGbLL1_0q64 yuminstallgcc-c++openssl-develmake-ycd/tmpcurl-sLhttps://rpm.nodesource.com/setup|bash-yuminstall-ynodejsnpminstall-gexpress-generatoruseraddusernamepasswdusernamemkdirfirst_project......
  • 一些好用的npm包分享
    shelljsshell命令的node封装commander强大的命令行指令处理工具command-line-args基于配置的命令行参数解析command-line-usage生成可读性强的命令行打印信息inquirer交互式命令行工具例如:利用上下键,操作命令行选项,输入指令,确认与否等。git-pull-or-clonegit仓库克隆......
  • 查看显卡使用情况nvidia-smi报错:command not found
    辗转查看了很多教程,踩了好多坑,最后终于解决了,参考的相关博客会在后文做引用。我解决的办法:1、在root下重启机器,执行:reboot2、重启以后,执行:cd/usr/src/,然后ls,查看nvidia-xxx,xxx为支持的版本号;3、安装驱动,执行:sudoapt-getinstalldkmssudodkmsinstall-mnvidia-vxxx(xxx为......