Cod*_*000 5 google-app-engine node.js google-cloud-platform gulp
我在终端中写的像往常一样部署:
gcloud app deploy
Run Code Online (Sandbox Code Playgroud)
我得到的错误:
Application startup error:
> meanjs@0.5.0 start /app
> gulp
sh: 1: gulp: not found
npm ERR! Linux 3.16.0-4-amd64
npm ERR! argv "/nodejs/bin/node" "/nodejs/bin/npm" "start"
npm ERR! node v6.9.5
npm ERR! npm v3.10.10
npm ERR! file sh
npm ERR! code ELIFECYCLE
npm ERR! errno ENOENT
npm ERR! syscall spawn
npm ERR! meanjs@0.5.0 start: `gulp`
npm ERR! spawn ENOENT
npm ERR!
npm ERR! Failed at the meanjs@0.5.0 start script 'gulp'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the meanjs package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! gulp
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs meanjs
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls meanjs
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /app/npm-debug.log
Run Code Online (Sandbox Code Playgroud)
使用Mean.js:https://github.com/meanjs/mean
找不到npm调试日志.
PS:我确实在全球安装了gulp
$ sudo npm install gulp-cli -g
Run Code Online (Sandbox Code Playgroud)
Cod*_*000 -1
这是 NODE_ENV 的问题。
它在生产中找不到 gulp 依赖项,因此我必须更改我的 package.json 并将所有内容放入“依赖项”中,而不是在“dev_dependency”中使用某些内容。
| 归档时间: |
|
| 查看次数: |
498 次 |
| 最近记录: |