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

Fresh npm install fails #1830

Closed
lieut-data opened this issue Feb 28, 2023 · 1 comment
Closed

Fresh npm install fails #1830

lieut-data opened this issue Feb 28, 2023 · 1 comment

Comments

@lieut-data
Copy link
Member

lieut-data commented Feb 28, 2023

Running npm install with an empty node_modules yields:

npm WARN deprecated popper.js@1.16.1: You can find the new Popper v2 at @popperjs/core, this package is dedicated to the legacy v1
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x
even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated w3c-hr-time@1.0.2: Use your platform's native performance.now() and performance.timeOrigin.
npm WARN deprecated sourcemap-codec@1.4.8: Please use @jridgewell/sourcemap-codec instead
npm WARN deprecated rudder-sdk-js@1.0.16: 1.x.x versions of the SDK are deprecated. Please upgrade to the latest (2.x.x) version
npm WARN deprecated babel-eslint@10.1.0: babel-eslint is now @babel/eslint-parser. This package will no longer receive updates.
npm WARN deprecated @types/classnames@2.3.1: This is a stub types definition. classnames provides its own type definitions, so you do not need this installed.
npm WARN deprecated core-js@2.6.12: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x
even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm WARN deprecated core-js-pure@3.20.2: core-js-pure@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown u
p to 100x even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js-pure.
npm WARN deprecated core-js@3.20.2: core-js@<3.23.3 is no longer maintained and not recommended for usage due to the number of issues. Because of the V8 engine whims, feature detection in old core-js versions could cause a slowdown up to 100x
even if nothing is polyfilled. Some versions have web compatibility issues. Please, upgrade your dependencies to the actual version of core-js.
npm ERR! code 1
npm ERR! path /Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp
npm ERR! command failed
npm ERR! command sh -c npm run build --workspaces && node skip_integrity_check.js
npm ERR! > @mattermost/client@7.4.0 build
npm ERR! > tsc --build --verbose
npm ERR!
npm ERR! 12:00:34 p.m. - Projects in this build:
npm ERR!     * ../types/tsconfig.json
npm ERR!     * tsconfig.json
npm ERR!
npm ERR! 12:00:34 p.m. - Project '../types/tsconfig.json' is out of date because output file '../types/lib/admin.js' does not exist
npm ERR!
npm ERR! 12:00:34 p.m. - Building project '/Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/types/tsconfig.json'...
npm ERR!
npm ERR! ../../../@types/chartjs-plugin-annotation/index.d.ts(30,40): error TS2694: Namespace 'Chart' has no exported member 'PluginServiceGlobalRegistration'.
npm ERR! ../../../@types/chartjs-plugin-annotation/index.d.ts(30,80): error TS2694: Namespace 'Chart' has no exported member 'PluginServiceRegistrationOptions'.
npm ERR! ../../../@types/react-bootstrap/index.d.ts(47,15): error TS2307: Cannot find module './lib' or its corresponding type declarations.
npm ERR! 12:00:41 p.m. - Project 'tsconfig.json' can't be built because its dependency '../types' has errors
npm ERR!
npm ERR! 12:00:41 p.m. - Skipping build of project '/Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/client/tsconfig.json' because its dependency '/Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/types' has errors
npm ERR!
npm ERR!
npm ERR! > @mattermost/types@7.4.0 build
npm ERR! > tsc --build --verbose
npm ERR!
npm ERR! 12:00:41 p.m. - Projects in this build:
npm ERR!     * tsconfig.json
npm ERR!
npm ERR! 12:00:41 p.m. - Project 'tsconfig.json' is out of date because output file 'lib/admin.js' does not exist
npm ERR!
npm ERR! 12:00:41 p.m. - Building project '/Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/types/tsconfig.json'...
npm ERR!
npm ERR! ../../../@types/chartjs-plugin-annotation/index.d.ts(30,40): error TS2694: Namespace 'Chart' has no exported member 'PluginServiceGlobalRegistration'.
npm ERR! ../../../@types/chartjs-plugin-annotation/index.d.ts(30,80): error TS2694: Namespace 'Chart' has no exported member 'PluginServiceRegistrationOptions'.
npm ERR! ../../../@types/react-bootstrap/index.d.ts(47,15): error TS2307: Cannot find module './lib' or its corresponding type declarations.
npm ERR!
npm ERR! > @mattermost/components@7.4.0 build
npm ERR! > rollup -c
npm ERR! npm ERR! Lifecycle script `build` failed with error:
npm ERR! npm ERR! Error: command failed
npm ERR! npm ERR!   in workspace: @mattermost/client@7.4.0
npm ERR! npm ERR!   at location: /Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/client
npm ERR! npm ERR! Lifecycle script `build` failed with error:
npm ERR! npm ERR! Error: command failed
npm ERR! npm ERR!   in workspace: @mattermost/types@7.4.0
npm ERR! npm ERR!   at location: /Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/types
npm ERR! sh: rollup: command not found
npm ERR! npm ERR! Lifecycle script `build` failed with error:
npm ERR! npm ERR! Error: command failed
npm ERR! npm ERR!   in workspace: @mattermost/components@7.4.0
npm ERR! npm ERR!   at location: /Users/jesse/Documents/mattermost/src/mattermost-plugin-playbooks/webapp/node_modules/mattermost-webapp/packages/components

npm ERR! A complete log of this run can be found in:
npm ERR!     /Users/jesse/.npm/_logs/2023-02-28T16_00_48_212Z-debug.log
@lieut-data
Copy link
Member Author

Oops, I forgot we need to npm install --ignore-scripts --no-save --legacy-peer-deps now, not npm install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
No open projects
Status: Done
Development

No branches or pull requests

1 participant