为了一个学校项目的目的,我需要使用Yeoman的Angular-fullstack生成器开发一个web应用程序。
在这个过程中,我需要使用heroku推送我的web应用程序。我遵循了所有的步骤,但当我
git push heroku master我收到一条错误消息:
remote: > typings install
remote:
remote: sh: 1: typings: not found
remote:
remote: npm ERR! Linux 3.13.0-100-generic
remote: npm ERR! argv "/tmp/build_619bf0f5cc66ca8fa9680ec4149eaa76/.heroku/node/bin/node" "/tmp/build_619bf0f5cc66ca8fa9680ec4149eaa76/.heroku/node/bin/npm" "install" "--unsafe-perm" "--userconfig" "/tmp/build_619bf0f5cc66ca8fa9680ec4149eaa76/.npmrc"
remote: npm ERR! node v6.9.1
remote: npm ERR! npm v4.0.3
remote: npm ERR! file sh
remote: npm ERR! code ELIFECYCLE
remote: npm ERR! errno ENOENT
remote: npm ERR! syscall spawn
remote: npm ERR! projet-yboo-emotion@0.0.0 postinstall: `typings install`
remote: npm ERR! spawn ENOENT
remote: npm ERR!
remote: npm ERR! Failed at the projet-yboo-emotion@0.0.0 postinstall script 'typings install'.
remote: npm ERR! Make sure you have the latest version of node.js and npm installed.
remote: npm ERR! If you do, this is most likely a problem with the projet-yboo-emotion package,
remote: npm ERR! not with npm itself.
remote: npm ERR! Tell the author that this fails on your system:
remote: npm ERR! typings install
...
remote: ! Push rejected, failed to compile Node.js app.
remote:
remote: ! Push failed
remote: Verifying deploy....
remote:
remote: ! Push rejected to ybooemotiont3m.
remote:
To https://git.heroku.com/ybooemotiont3m.git
! [remote rejected] master -> master (pre-receive hook declined)
error: failed to push some refs to 'https://git.heroku.com/ybooemotiont3m.git'我不太明白为什么..。我已经安装了类型:
typings --version
2.0.0在我的package.json中:
"dependencies": {
...
"typings": "^2.0.0"
...发布于 2016-12-07 03:30:29
第一次向heroku master推送angular-fullstack项目时,有一些简单的步骤可以遵循。
这些步骤是使用cmd (用于Windows机器)的gulp工具实现的。
heroku
https://stackoverflow.com/questions/40933860
复制相似问题