manfredsteyer / Angular_MicroApps_Different_Technologies

56 stars 29 forks source link

i can't install #2

Open erickestefano opened 5 years ago

erickestefano commented 5 years ago

can't execute npm install, error: Cannot download "https://github.com/sass/node-sass/releases/download/v4.8.3/win32-x64-64_binding.node"

MarkMudde commented 5 years ago

Removing the package-lock.json should take care of this error. However, after resolving this there are some more errors I have no clue how to resolve... Right now: TypeError: PurifyPlugin is not a constructor when I try npm run build

QuentinLuc commented 4 years ago

Same here, I cannot install the project.

sebgos commented 4 years ago

Try to remove package-lock.json file and npm i

Then I recommend installing Webpack separately npm i webpack --save-dev

Pringmore commented 3 years ago

Guys now it is working for me after not being able to install the packages!

The webpack was installed on my machine globally, in my case w/ version 4.7.0-3. Be sure as @MarkMudde said that the package.json is deleted before executing:

#npm i

VictorZakharov commented 3 years ago

It only worked for me after running the following command:

npm install --save-dev webpack webpack-cli html-webpack-plugin webpack-dev-server webpack-dev-middleware

Thanks to https://stackoverflow.com/questions/43179531/error-cannot-find-module-webpack-lib-node-nodetemplateplugin.

I also had to change webpack to version 4 in package.json (webpack installs at version 5 by default):

"webpack": "^4.42.0",

Thanks to https://stackoverflow.com/questions/65588591/vue-3-and-webpack-5-error-module-property-was-removed-from-dependency.

This in addition to deleting package-lock.json. I will include TGit diff for reference. image

I needed to see how to implement AngularJS app as a web component, so I'll include a screenshot from the working app. image

VictorZakharov commented 3 years ago

BTW, one of the micro apps doesn't load, the above setup might need more work. image When trying to access this url: http://localhost:4200/#/booking/payment