New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
serverless is broken badly #8225
Comments
Use npm to clear the cache then delete node_modules. Make sure you uninstall serverless if it is globally installed. Also turn your PC off and on again ;) |
@vagarwal77 note that latest version of |
Followed all the below steps and rebooted and still problem persist - [vagarwal@AI@ip-10-164-1-105 fhir-works-on-aws-deployment]$ npm cache clean
module.js:478 Error: Cannot find module '/usr/lib/node_modules/serverless/node_modules/protobufjs/scripts/postinstall' npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/serverless/node_modules/chokidar/node_modules/fsevents): npm ERR! protobufjs@6.10.1 postinstall: npm ERR! Please include the following file with any support request: |
[vagarwal@ConcertoHealth.AI@ip-10-164-1-105 fhir-works-on-aws-deployment]$ node -v |
Updated all the version [vagarwal@ConcertoHealth.AI@ip-10-164-1-105 fhir-works-on-aws-deployment]$ node -v Fetch Error -------------------------------------------- FetchError: request to https://api.serverless.com/core/meta failed, reason: read ECONNRESET
Get Support -------------------------------------------- Your Environment Information --------------------------- |
@vagarwal77 thanks for update. From your logs I see two issues on our side:
|
Seems like, serverless is broken badly :-
[vagarwal@ConcertoHealth.AI@ip-10-164-1-105 fhir-works-on-aws-deployment]$ sudo npm install -g serverless@~1.62.0
npm WARN deprecated resolve-url@0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated urix@0.1.0: Please see https://github.com/lydell/urix#deprecated
/usr/bin/serverless -> /usr/lib/node_modules/serverless/bin/serverless.js
/usr/bin/slss -> /usr/lib/node_modules/serverless/bin/serverless.js
/usr/bin/sls -> /usr/lib/node_modules/serverless/bin/serverless.js
serverless@1.62.0 postinstall /usr/lib/node_modules/serverless
node ./scripts/postinstall.js
module.js:478
throw err;
^
Error: Cannot find module 'boxen'
at Function.Module._resolveFilename (module.js:476:15)
at Function.Module._load (module.js:424:25)
at Module.require (module.js:504:17)
at require (internal/module.js:20:19)
at Object. (/usr/lib/node_modules/serverless/scripts/postinstall.js:3:15)
at Module._compile (module.js:577:32)
at Object.Module._extensions..js (module.js:586:10)
at Module.load (module.js:494:32)
at tryModuleLoad (module.js:453:12)
at Function.Module._load (module.js:445:3)
/usr/lib
└── (empty)
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.1.2 (node_modules/serverless/node_modules/chokidar/node_modules/fsevents):
npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.1.3: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
npm WARN ws@7.3.1 requires a peer of bufferutil@^4.0.1 but none was installed.
npm WARN ws@7.3.1 requires a peer of utf-8-validate@^5.0.2 but none was installed.
npm ERR! Linux 4.14.186-146.268.amzn2.x86_64
npm ERR! argv "/usr/bin/node" "/bin/npm" "install" "-g" "serverless@~1.62.0"
npm ERR! node v6.17.1
npm ERR! npm v3.10.10
npm ERR! code ELIFECYCLE
npm ERR! serverless@1.62.0 postinstall: node ./scripts/postinstall.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the serverless@1.62.0 postinstall script 'node ./scripts/postinstall.js'.
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 serverless package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node ./scripts/postinstall.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs serverless
npm ERR! Or if that isn't available, you can get their info via:
npm ERR! npm owner ls serverless
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR! /home/vagarwal@ConcertoHealth.AI/fhir-works-on-aws-deployment/npm-debug.log
npm ERR! code 1
The text was updated successfully, but these errors were encountered: