cancel
Showing results for 
Search instead for 
Did you mean: 

spartacus semantics error

pandeysuresh06
Participant
0 Kudos

Hi Team i am trying to publish libraries using the standard document in my windows system

spartacus/docs/self-publishing-spartacus-libraries.md at develop-6.1.x · SAP/spartacus (github.com)

but while running the command npm install && npm run build:libs

[build:schematics]

[build:user]

[build:user] > @spartacus/user@6.3.0-1 clean:schematics

[build:user] > ../../node_modules/.bin/rimraf --glob "schematics/**/*.js" "schematics/**/*.js.map" "schematics/**/*.d.ts"

[build:user]

[build:schematics] '..' is not recognized as an internal or external command,

[build:schematics] operable program or batch file.

[build:schematics] npm run build:schematics exited with code 1

--> Sending SIGTERM to other processes..

[build:user] '..' is not recognized as an internal or external command,

[build:user] operable program or batch file.

[build:user] npm run build:user exited with code 1.

Can somebody help as it is very urgent. safin can you please help her .

Adding the node and angular packages as well.

Angular CLI: 15.2.4

Node: 18.17.0

Package Manager: npm 9.6.7

OS: win32 x64

Angular: 15.2.4

... animations, cli, common, compiler, compiler-cli, core, forms

... language-service, platform-browser, platform-browser-dynamic

... platform-server, pwa, router, service-worker

Package Version

---------------------------------------------------------

@angular-devkit/architect 0.1502.4

@angular-devkit/build-angular 15.2.4

@angular-devkit/core 15.2.4

@angular-devkit/schematics 15.2.4

@nguniversal/builders 15.2.0

@nguniversal/express-engine 15.2.0

@schematics/angular 15.2.4

ng-packagr 15.2.2

rxjs 6.6.7

typescript 4.9.5

webpack 5.76.3

Accepted Solutions (0)

Answers (3)

Answers (3)

AMARANATH
Newcomer
0 Kudos

AMARANATH_0-1707034242230.png

Window's cmd don't recognise ../

but git bash do

Install git bash in windows and set shell for both yarn and npm 

AMARANATH_2-1707035399527.png

 

 

 

 

jesus-maica
Discoverer
0 Kudos

Hello pandeysuresh06,

Did you find the solution? we have the same issue...

Thanks!

samuelyang
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi Pandey,

It worked well on my Mac with below versions.

Angular CLI 15.2.9

Node v16.19.0

npm 8.19.3

Spartacus 6.0.3

As the 6.3 branch is still in development and not released, it's not guaranteed to work. Please try the same with the release branche, e.g., release/6.0.3 to build your own libraries and publish to your own repo.