Error: Cannot find module 'typescript'
### Shopware Version
6.7.
### Shopware CLI Version
0.14.9
### PHP Version
8.4
### Operating System
6.7.10.0
### CLI Command
SHOPWARE_CLI_NO_SYMFONY_CLI=1 shopware-cli project admin-build --skip-extensions=NetiNextEasyCouponDesigns
### Actual behaviour
We are on some shared hosting environment, locally and in the pipeline it works, but on stage the stops by not finding typescript.
Any pointers what can be the reason?
### Expected behaviour
Build runs through
### Relevant log/output
```shell
$ SHOPWARE_CLI_NO_SYMFONY_CLI=1 shopware-cli project admin-build --skip-extensions=NetiNextEasyCouponDesigns
INFO Looking for extensions to build assets in project
[OK] Successfully dumped js feature configuration
[OK] Dumped plugin configuration.
INFO Excluding extensions: NetiNextEasyCouponDesigns
INFO Starting Installing node_modules for extensions
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/netinextstorelocator/src/Resources/app/storefront (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/laudertfriendlycaptcha/src/Resources/app/storefront (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/shopware/storefront/Resources/app/administration (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/shopware/storefront/Resources/app/storefront (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/netzpsearchadvanced6/src/Resources/app/administration (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/wbmtagmanageranalytics/src/Resources/app/administration/src (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/swaganalytics/Resources/app/storefront (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/swagplatformsecurity/src/Resources/app/administration (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/swagpaypal/src/Resources/app/administration (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/swagpaypal/src/Resources/app/storefront (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing npm dependencies in /var/www/clients/client1/web2/web/vendor/store.shopware.com/newslettersendinblue/src/Resources/app/administration (consider enabling npm_strict mode, to install only production relevant dependencies)
INFO Installing node_modules for extensions ended after 15.229351645s
INFO Starting Building administration assets
> administration@1.0.0 build
> export VITE_MODE=production && ts-node -T build.ts
node:internal/modules/cjs/loader:1386
throw err;
^
Error: Cannot find module 'typescript'
Require stack:
- /var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/util.js
- /var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js
at Function._resolveFilename (node:internal/modules/cjs/loader:1383:15)
at Function.resolve (node:internal/modules/helpers:157:19)
at projectLocalResolveHelper (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/util.js:117:24)
at resolveCompiler (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/configuration.js:232:22)
at resolveAndLoadCompiler (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/configuration.js:225:26)
at findAndReadConfig (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/configuration.js:48:28)
at phase3 (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js:254:67)
at bootstrap (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js:47:30)
at main (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js:33:12)
at Object.<anonymous> (/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js:579:5) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/util.js',
'/var/www/clients/client1/web2/web/vendor/shopware/administration/Resources/app/administration/node_modules/ts-node/dist/bin.js'
]
}
Node.js v22.21.1
Usage:
shopware-cli project admin-build [project-dir] [flags]
Aliases:
admin-build, build-admin
Flags:
--force-install-dependencies Force install NPM dependencies
-h, --help help for admin-build
--only-custom-static-extensions Only build extensions from custom/static-plugins directory
--only-extensions string Only watch the given extensions (comma separated)
--skip-assets-install Skips the assets installation
--skip-extensions string Skips the given extensions (comma separated)
Global Flags:
-n, --no-interaction do not ask any interactive questions
--project-config string Path to config (default ".shopware-project.yml")
--verbose show debug output
FATAL exit status 1
```
7 条评论