npm setup issues
See original GitHub issueHaving issues running npm run setup
, i followed the setup instructions and have the follwing aws version installed aws --version aws-cli/1.11.16 Python/2.7.10 Darwin/16.6.0 botocore/1.4.73
That said fairly new to node + serverless (im coming from iOS), so apologies if im missing something obvious, but any help would be greatly appreciated.
0 info it worked if it ends with ok
1 verbose cli [ '/Users/waltermvp/.nvm/versions/node/v8.1.2/bin/node',
1 verbose cli '/Users/waltermvp/.nvm/versions/node/v8.1.2/bin/npm',
1 verbose cli 'run',
1 verbose cli 'setup' ]
2 info using npm@5.0.3
3 info using node@v8.1.2
4 verbose run-script [ 'presetup', 'setup', 'postsetup' ]
5 info lifecycle aws-serverless-express-example@2.1.1~presetup: aws-serverless-express-example@2.1.1
6 silly lifecycle aws-serverless-express-example@2.1.1~presetup: no script for presetup, continuing
7 info lifecycle aws-serverless-express-example@2.1.1~setup: aws-serverless-express-example@2.1.1
8 verbose lifecycle aws-serverless-express-example@2.1.1~setup: unsafe-perm in lifecycle true
9 verbose lifecycle aws-serverless-express-example@2.1.1~setup: PATH: /Users/waltermvp/.nvm/versions/node/v8.1.2/lib/node_modules/npm/bin/node-gyp-bin:/Users/waltermvp/Development/Open Source/aws-serverless-express/example/node_modules/.bin:/Users/waltermvp/.nvm/versions/node/v8.1.2/bin:/Users/waltermvp/.rvm/gems/ruby-2.3.3/bin:/Users/waltermvp/.rvm/gems/ruby-2.3.3@global/bin:/Users/waltermvp/.rvm/rubies/ruby-2.3.3/bin:/usr/local/bin:/usr/bin:/bin:/usr/sbin:/sbin:/Users/waltermvp/.rvm/bin:/usr/local/git/bin:/usr/local/bin
10 verbose lifecycle aws-serverless-express-example@2.1.1~setup: CWD: /Users/waltermvp/Development/Open Source/aws-serverless-express/example
11 silly lifecycle aws-serverless-express-example@2.1.1~setup: Args: [ '-c',
11 silly lifecycle 'npm install && (aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy' ]
12 silly lifecycle aws-serverless-express-example@2.1.1~setup: Returned: code: 2 signal: null
13 info lifecycle aws-serverless-express-example@2.1.1~setup: Failed to exec setup script
14 verbose stack Error: aws-serverless-express-example@2.1.1 setup: `npm install && (aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy`
14 verbose stack Exit status 2
14 verbose stack at EventEmitter.<anonymous> (/Users/waltermvp/.nvm/versions/node/v8.1.2/lib/node_modules/npm/lib/utils/lifecycle.js:283:16)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at EventEmitter.emit (events.js:213:7)
14 verbose stack at ChildProcess.<anonymous> (/Users/waltermvp/.nvm/versions/node/v8.1.2/lib/node_modules/npm/lib/utils/spawn.js:40:14)
14 verbose stack at emitTwo (events.js:125:13)
14 verbose stack at ChildProcess.emit (events.js:213:7)
14 verbose stack at maybeClose (internal/child_process.js:897:16)
14 verbose stack at Process.ChildProcess._handle.onexit (internal/child_process.js:208:5)
15 verbose pkgid aws-serverless-express-example@2.1.1
16 verbose cwd /Users/waltermvp/Development/Open Source/aws-serverless-express/example
17 verbose Darwin 16.6.0
18 verbose argv "/Users/waltermvp/.nvm/versions/node/v8.1.2/bin/node" "/Users/waltermvp/.nvm/versions/node/v8.1.2/bin/npm" "run" "setup"
19 verbose node v8.1.2
20 verbose npm v5.0.3
21 error code ELIFECYCLE
22 error errno 2
23 error aws-serverless-express-example@2.1.1 setup: `npm install && (aws s3api get-bucket-location --bucket $npm_package_config_s3BucketName --region $npm_package_config_region || npm run create-bucket) && npm run package-deploy`
23 error Exit status 2
24 error Failed at the aws-serverless-express-example@2.1.1 setup script.
24 error This is probably not a problem with npm. There is likely additional logging output above.
25 verbose exit [ 2, true ]
Issue Analytics
- State:
- Created 6 years ago
- Comments:7
Top Results From Across the Web
Common errors
Some strange issues can be resolved by simply running npm cache clean and trying again. If you are having trouble with npm install...
Read more >npm install error from the terminal
I had this problem when trying to run 'npm install' in a Terminal window which had been opened before installing Node.js.
Read more >NPM install error
Trying to install MDB pro 4.19.2 just downloaded and ran npm install but getting this error of sha512 not matching. Can someone tell...
Read more >Common Errors - npm
You can resolve some strange issues by running npm cache clean and trying again. · If you are experiencing issues with npm install,...
Read more >How to fix npm install command not working
The error above happens when npm can't be found under the PATH environment variable. First, you need to make sure that npm is...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@brettstack it worked with
waltermvp@Walters-iMac:~$ aws --version aws-cli/1.11.107 Python/2.7.10 Darwin/16.6.0 botocore/1.5.70
thanks !!looks like they are not, Appears i need to figure out my aws issues first. Closing for now, thanks!