关于grunt 使用

新手上路,请多包涵

目录文件有package.json 和 Gruntfile.js
注入目录文件到package.json ,
使用命令 npm install
出现如下错误
npm ERR! git clone C:\Users\lzm42\AppData\Roaming\npm-cache_git-remotes\git-github-com-twbs-grunt-sed-git-ec5a8149 C:\Users\lzm42\AppData\Local\Temp\npm-2884-ca27d988\git-cache-473ec8acc056\8dd1aea67ad1bab8a6719f0cf209bef719c66ad7: Cloning into 'C:\Users\lzm42\AppData\Local\Temp\npm-2884-ca27d988\git-cache-473ec8acc056\8dd1aea67ad1bab8a6719f0cf209bef719c66ad7'...
npm ERR! git clone C:\Users\lzm42\AppData\Roaming\npm-cache_git-remotes\git-github-com-twbs-grunt-sed-git-ec5a8149 C:\Users\lzm42\AppData\Local\Temp\npm-2884-ca27d988\git-cache-473ec8acc056\8dd1aea67ad1bab8a6719f0cf209bef719c66ad7: error: cannot spawn sh: No such file or directory
npm ERR! git clone C:\Users\lzm42\AppData\Roaming\npm-cache_git-remotes\git-github-com-twbs-grunt-sed-git-ec5a8149 C:\Users\lzm42\AppData\Local\Temp\npm-2884-ca27d988\git-cache-473ec8acc056\8dd1aea67ad1bab8a6719f0cf209bef719c66ad7: fatal: unable to fork

阅读 2.1k
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
推荐问题