@nuskin/ns-aem
v3.34.444
Published
Nu Skin Javascript Library
Downloads
660
Keywords
Readme
Steps to build and run locally
- Install yarn -- https://classic.yarnpkg.com/en/docs/install/#mac-stable
cd webcomponents-ui/src/main/content/webcomponents/js/packages/aem
yarn install
yarn build
- If you get the following error when you do a
yarn build
then add this to your environment variables in your bash shellexport NODE_OPTIONS=--max_old_space_size=4096
- If you get the following error when you do a
<--- JS stacktrace --->
==== JS stack trace =========================================
0: ExitFrame [pc: 0xfdf1c9878a1]
Security context: 0x1b429ac1e6e9 <JSObject>
1: byteLength(aka byteLength) [0x1b4205af9801] [buffer.js:~509] [pc=0xfdf1fe2de87](this=0x1b42d0b026f1 <undefined>,string=0x1b42b02f01e9 <Very long string[81038114]>,encoding=0x1b429ac3e981 <String[4]: utf8>)
2: arguments adaptor frame: 3->2
3: fromString(aka fromString) [0x1b427ff13581] [buffer.js:~334] [pc=0xfdf1cc6d950](this=0x1b42d0b026f1 <und...
FATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory
1: 0x10003cff5 node::Abort() [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
2: 0x10003d1ff node::OnFatalError(char const*, char const*) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
3: 0x1001b8265 v8::internal::V8::FatalProcessOutOfMemory(v8::internal::Isolate*, char const*, bool) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
4: 0x1005861c2 v8::internal::Heap::FatalProcessOutOfMemory(char const*) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
5: 0x10058f6c4 v8::internal::Heap::AllocateRawWithRetryOrFail(int, v8::internal::AllocationSpace, v8::internal::AllocationAlignment) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
6: 0x1005614b4 v8::internal::Factory::NewRawTwoByteString(int, v8::internal::PretenureFlag) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
7: 0x100693029 v8::internal::String::SlowFlatten(v8::internal::Handle<v8::internal::ConsString>, v8::internal::PretenureFlag) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
8: 0x1001d5ffd v8::String::Utf8Length() const [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
9: 0x100051057 node::Buffer::(anonymous namespace)::ByteLengthUtf8(v8::FunctionCallbackInfo<v8::Value> const&) [/Users/ncjarvis/.nvm/versions/node/v10.16.1/bin/node]
10: 0xfdf1c9878a1
error Command failed with signal "SIGABRT".
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
yarn serve
-- This command takes a long time but it will eventually complete. It will seem like it is stuck at 69% or some percentage for a long while and then it will finally respond so be patient.- A web page will eventually popup in your browser:
http://localhost:8080/
- This url lets you access the cart:
http://localhost:8080/playground/cart.html
- This url lets you login:
http://localhost:8080/playground/ns-login.html
- Use the username:
pedista
- Use the password:
Abdc1234
- Use the username:
- After login you will see the url:
http://localhost:8080/playground/home.html
- To order something go to
http://localhost:8080/playground/cart.html
and typerenu
in the Search field of the cart.html web page - Then select the product that comes up which will be
ReNu Hair Mask
- Then follow the checkout proceedure