Comments (6)
@TrueCarry It's failing with this Error: Command failed: npm ls -prod -json -depth=1
.
It seems like serverless-webpack is using something specific for npm. Not sure what is going on.
from serverless-nodejs-starter.
Tried with serverless-webpack 4.2.0 and it somehow works.
from serverless-nodejs-starter.
@TrueCarry Oh weird. Thanks for letting me know. I'll update it.
from serverless-nodejs-starter.
@TrueCarry Just updated it. 4cc022d. Closing this.
from serverless-nodejs-starter.
Hello. Tried using your template again today, and it crashes with 'probably' same error. Not sure how to debug it.
Logs:
Tims-MacBook-Pro:telegraf-aws-test TrueCarry$ SLS_DEBUG=* sls deploy
Serverless: Load command run
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command create
Serverless: Load command install
Serverless: Load command package
Serverless: Load command deploy
Serverless: Load command deploy:function
Serverless: Load command deploy:list
Serverless: Load command deploy:list:functions
Serverless: Load command invoke
Serverless: Load command invoke:local
Serverless: Load command info
Serverless: Load command logs
Serverless: Load command login
Serverless: Load command logout
Serverless: Load command metrics
Serverless: Load command print
Serverless: Load command remove
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command slstats
Serverless: Load command plugin
Serverless: Load command plugin
Serverless: Load command plugin:install
Serverless: Load command plugin
Serverless: Load command plugin:uninstall
Serverless: Load command plugin
Serverless: Load command plugin:list
Serverless: Load command plugin
Serverless: Load command plugin:search
Serverless: Load command emit
Serverless: Load command config
Serverless: Load command config:credentials
Serverless: Load command rollback
Serverless: Load command rollback:function
Serverless: Load command webpack
Serverless: Invoke deploy
Serverless: Invoke package
Serverless: Invoke aws:common:validate
Serverless: Invoke aws:common:cleanupTempDir
Serverless: Invoke webpack:validate
Serverless: Invoke webpack:compile
Serverless: Bundling with Webpack...
Time: 642ms
Asset Size Chunks Chunk Names
handler.js 4.98 kB 0 [emitted] handler
handler.js.map 5.44 kB 0 [emitted] handler
[0] ./handler.js 1.91 kB {0} [built]
[1] external "babel-runtime/regenerator" 42 bytes {0} [not cacheable]
[2] external "babel-runtime/helpers/asyncToGenerator" 42 bytes {0} [not cacheable]
[3] external "source-map-support/register" 42 bytes {0} [not cacheable]
[4] external "telegraf" 42 bytes {0} [not cacheable]
[5] external "telegraf-aws" 42 bytes {0} [not cacheable]
Serverless: Invoke webpack:package
Syntax Error -------------------------------------------
Unexpected end of JSON input
For debugging logs, run again after setting the "SLS_DEBUG=*" environment variable.
Stack Trace --------------------------------------------
SyntaxError: Unexpected end of JSON input
SyntaxError: Unexpected end of JSON input
at JSON.parse (<anonymous>)
at BbPromise.try (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/serverless-webpack/lib/packExternalModules.js:236:47)
at tryCatcher (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/util.js:16:23)
at Function.Promise.attempt.Promise.try (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/method.js:39:29)
at BbPromise.fromCallback.then.depJson (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/serverless-webpack/lib/packExternalModules.js:236:35)
at tryCatcher (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/util.js:16:23)
at Promise._settlePromiseFromHandler (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/promise.js:512:31)
at Promise._settlePromise (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/promise.js:569:18)
at Promise._settlePromise0 (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/promise.js:614:10)
at Promise._settlePromises (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/promise.js:693:18)
at Promise._fulfill (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/promise.js:638:18)
at /Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/bluebird/js/release/nodeback.js:42:21
at childProcess.exec (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/serverless-webpack/lib/packExternalModules.js:233:16)
at ChildProcess.exithandler (child_process.js:282:5)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at maybeClose (internal/child_process.js:925:16)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)
From previous event:
at PluginManager.invoke (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:368:22)
at PluginManager.spawn (/usr/local/lib/node_modules/serverless/lib/classes/PluginManager.js:386:17)
at ServerlessWebpack.BbPromise.bind.then.then.then (/Users/TrueCarry/Documents/GitHub/telegraf-aws-test/node_modules/serverless-webpack/index.js:90:51)
at runCallback (timers.js:789:20)
at tryOnImmediate (timers.js:751:5)
at processImmediate [as _immediateCallback] (timers.js:722:5)
Get Support --------------------------------------------
Docs: docs.serverless.com
Bugs: github.com/serverless/serverless/issues
Forums: forum.serverless.com
Chat: gitter.im/serverless/serverless
Your Environment Information -----------------------------
OS: darwin
Node Version: 8.9.3
Serverless Version: 1.25.0
@jayair Can you re-open this?
from serverless-nodejs-starter.
@TrueCarry Sure. Which version of Serverless are you using?
from serverless-nodejs-starter.
Related Issues (20)
- Feature request: SAM template HOT 1
- Babel 7 support HOT 1
- Error message when installing dependencies HOT 5
- Any future updates to this repo - like updating to Node 10.x HOT 3
- Error: Can't resolve 'source-map-support/register' in 'libs/response-lib.js' HOT 17
- AWS_PROFILE=default serverless invoke local --function create --path mocks/create-event.json HOT 1
- Function Routes Defined in file not loaded HOT 2
- Clean install with deploy results in non-webpacked node functions HOT 1
- Debug lambda using VScode
- Tests do not load .env or serverless.yml variables HOT 8
- Can't create a project on Windows 10 - Request timed out HOT 1
- Cannot run sample project on aws lambda HOT 1
- Sharp module not found after deploy HOT 2
- Create Ticket - Instructor HOT 1
- Initial install throws serverless DeprecationWarning DEP0066
- Build crashes when using email-templates HOT 3
- Typescript version of the repo HOT 2
- gyp verb `which` failed Error: not found: python2 HOT 16
- As per Indian regulations, only registered Indian businesses (i.e. sole proprietorships, limited liability partnerships and companies, but not individuals) can accept international payments. More info here: https://stripe.com/docs/india-exports\" error.
- Serverless: Operation failed!
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from serverless-nodejs-starter.