Skip to content
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

npm install errors following README #178

Closed
rabbah opened this issue Jan 10, 2019 · 1 comment
Closed

npm install errors following README #178

rabbah opened this issue Jan 10, 2019 · 1 comment

Comments

@rabbah
Copy link

rabbah commented Jan 10, 2019

confirmed with a fresh clone and build as documented in the README:

added 42 packages in 10.814s
src/lib/cmds/edit-amd.ts:42:52 - error TS2307: Cannot find module '../../../../apache-composer/plugin/lib/utility/compile'.

42 import { compileSource, sourceToComposition } from '../../../../apache-composer/plugin/lib/utility/compile'
                                                      ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! [email protected] postinstall: `../../../../node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the [email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rabbah/.npm/_logs/2019-01-10T05_43_01_199Z-debug.log
src/test/composer1/wskflow_tests.ts:200:43 - error TS2345: Argument of type '() => Client<boolean>' is not assignable to parameter of type '() => boolean | Promise<boolean> | (Client<RawResult<any>> & RawResult<any>)'.
  Type 'Client<boolean>' is not assignable to type 'boolean | Promise<boolean> | (Client<RawResult<any>> & RawResult<any>)'.
    Type 'Client<boolean>' is not assignable to type 'Client<RawResult<any>> & RawResult<any>'.
      Type 'Client<boolean>' is not assignable to type 'Client<RawResult<any>>'.
        Type 'boolean' is not assignable to type 'RawResult<any>'.

200     .then(() => this.app.client.waitUntil(() => {
                                              ~~~~~~~

src/test/composer1/zzz-bottom-bar-back-button.ts:69:21 - error TS2531: Object is possibly 'null'.

69       .then(path => path.substring(path.lastIndexOf('/') + 1))
                       ~~~~

src/test/composer1/zzz-bottom-bar-back-button.ts:69:36 - error TS2531: Object is possibly 'null'.

69       .then(path => path.substring(path.lastIndexOf('/') + 1))
                                      ~~~~

src/test/composer1/zzz-bottom-bar-back-button.ts:83:21 - error TS2531: Object is possibly 'null'.

83       .then(path => path.substring(path.lastIndexOf('/') + 1))
                       ~~~~

src/test/composer1/zzz-bottom-bar-back-button.ts:83:36 - error TS2531: Object is possibly 'null'.

83       .then(path => path.substring(path.lastIndexOf('/') + 1))
                                      ~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @shell/[email protected] postinstall: `../../../../node_modules/.bin/tsc`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @shell/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rabbah/.npm/_logs/2019-01-10T05_43_01_262Z-debug.log
src/lib/flowCommand.ts:23:26 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/ast'.

23 import * as astUtil from '../../../apache-composer/plugin/lib/utility/ast'
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/preview.ts:34:25 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/badges'.

34 import * as badges from '../../../apache-composer/plugin/lib/utility/badges'
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/preview.ts:35:27 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/messages'.

35 import * as messages from '../../../apache-composer/plugin/lib/utility/messages'  // TODO: import from plugin js file
                             ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/preview.ts:38:30 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/compile'.

38 import * as compileUtil from '../../../apache-composer/plugin/lib/utility/compile'
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/util.ts:18:26 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/ast'.

18 import * as astUtil from '../../../apache-composer/plugin/lib/utility/ast'
                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

src/lib/util.ts:19:25 - error TS2307: Cannot find module '../../../apache-composer/plugin/lib/utility/badges'.

19 import * as badges from '../../../apache-composer/plugin/lib/utility/badges'
                           ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

npm ERR! code ELIFECYCLE
npm ERR! errno 2
npm ERR! @shell/[email protected] postinstall: `../../../../node_modules/.bin/tsc && rm -rf node_modules/jquery/src && rm -f node_modules/jquery/external/sizzle/dist/sizzle.js && rm -f node_modules/jquery/dist/core.js && mv -f node_modules/jquery/dist/jquery.min.js node_modules/jquery/dist/jquery.js && rm -f node_modules/jquery/dist/jquery.slim* && mv -f node_modules/jquery/dist/jquery.min.map node_modules/jquery/dist/jquery.map && rm -rf node_modules/d3/src && mv node_modules/d3/d3.min.js node_modules/d3/d3.js && rm -f node_modules/elkjs/lib/elk-worker.js node_modules/elkjs/lib/elk.bundled.js`
npm ERR! Exit status 2
npm ERR! 
npm ERR! Failed at the @shell/[email protected] postinstall script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/rabbah/.npm/_logs/2019-01-10T05_43_01_890Z-debug.log
npm WARN [email protected] No repository field.

added 93 packages in 27.279s

> [email protected] build /Users/rabbah/projects/kui/app
> node ./bin/build.js standalone

task: write config
task: read index.html template
task: write package.json
task: evaluate macros
task: write index.html
ok: build successful

> [email protected] compile /Users/rabbah/projects/kui/app
> if [ -d ../dist ]; then cd ../dist/bin && ./compile.js; fi

  ✓ plugin	apache-composer
  ✓ preload	apache-composer
  ✓ plugin	bash-like
  ✓ plugin	core-support
  ✓ preload	core-support
  ✓ plugin	editor
  ✓ preload	editor
  ✓ plugin	field-installed-plugins
  ✓ plugin	grid
  ✓ plugin	k8s
  ✓ plugin	openwhisk
  ✓ plugin	openwhisk-debug
  ✓ plugin	tutorials
  ✓ preload	tutorials
  ✓ plugin	wskflow
commencing seticon
Using appName=Kui and appIcon=../app/content/icons/png/kui.png

done
added 210 packages in 37.365s
added 291 packages in 47.033s
penguin [master *] kui> 
@starpit
Copy link
Contributor

starpit commented Jan 23, 2019

i suspect this one is now obsolete, or sufficiently morphed. in particular, the ../../../ require paths are no more

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants