Jump to content
Search Community

Prasanna

Members
  • Posts

    61
  • Joined

  • Last visited

Posts posted by Prasanna

  1. @dagda1 it appears that in your installation is creating a `@gsap/shockingly` folder instead of `gsap`. This might be due to the pnpm version that you're using.

    The easiest solution for you would be to run `pnpm add @gsap/shockingly` and import the packages using `import GSAP from '@gsap/shockingly'`

     

    Otherwise, try updating the pnpm version and you should be good too

    • Thanks 1
  2. I just checked the server logs and it seems like there were a few D-DOS attempts on the server and it is quite possible that @Supachaiwas trying to install during the same time. The D-DOS attack could have affected the response speeds. We gracefully handle DDOS attacks, but unfortunately due to the intensity of such attacks some responses could be delayed.

    @Supachai we hope you don't experience such issues again, but let us know if it does. We will consider some improvements on the infra.

    • Like 1
    • Thanks 2
  3. Hello @TimTh

    The error that you're getting is strange - reminds me of an error from NodeJs version 8. Can you check which version of nodejs you are using (node -v)?

     

    Alternatively, you could also run this command to configure the token:
    ```
    npm config set @gsap:registry https://npm.greensock.com

    npm config set //npm.greensock.com/:_authToken xxxxx-xxxx-xxxx

    ```

    Make sure to replace `xxxxx-xxxx-xxxx` with your token.

     

    Then running $npm i @gsap/shockingly should work 👍

    • Like 1
  4. Hello @Basebuilder, it appears that the version of yarn cli that you are using in bitbucket pipelines could be the issue. Can you try doing this instead:

     

    Run this command once in the repo

    $ yarn add @gsap/business gsap@npm:@gsap/business


    This should fix the pipelines.

    • Like 1
  5. Hello @thefa, Adding a .npmrc file to your project should solve the problem.

     

    Steps:
    1. Add a new file `.npmrc` in your project root

    2. Add the following content in the `.npmrc` file:

    ```

    @gsap:registry=https://npm.greensock.com
    //npm.greensock.com/:_authToken=xxxx-yyyy-zzzz

    ```

    3. Replace `xxxx-yyyy-zzzz` with your access token

     

    Pro tip: You can also store the token as env variables

     

    • Like 2
  6. Hello @derekobrien, I don't have an auth.json file with me, but I believe now you can use environment variables instead as well. (https://www.deployhq.com/support/config-files#environment-variables).

     

    You only need to add a .npmrc file to your project:

    @gsap:registry=https://npm.greensock.com
    //npm.greensock.com/:_authToken=${PRIVJS_TOKEN}

    Then add an environment variabled named `PRIVJS_TOKEN` in your deployHQ server. This should install the packages from greensock registry.

    • Like 3
  7. Hello everybody, I am sorry that you faced an issue. Our services went offline intermittently today as we experienced a DDOS attack on our systems. There's nothing to worry as our service actively fended off the attacks, but couldn't serve few users for a short while. We have increased our server capacity in order to prevent such scenarios in the future. My apologies for the inconvenience

    • Thanks 2
  8. Hello everybody, my sincere apologies for all these issues. In the last 24 hours we recieved a massive number of requests which our cloud service failed to handle.

    The services are back online now. Our team has also put measures to prevent this from happening again.

    Going forward, we will be migrating our services to multiple cloud services in order to prevent any downtime. I am very sorry for the troubles you faced in the past 24 hours.

     

    Prasanna

    • Like 1
    • Thanks 2
  9. Hello everybody, my sincere apologies for all these issues. In the last 24 hours we recieved a massive number of requests which our cloud service failed to handle.

    The services are back online now. Our team has also put measures to prevent this from happening again.

    Going forward, we will be migrating our services to multiple cloud services in order to prevent any downtime. I am very sorry for the troubles you faced in the past 24 hours.

     

    Prasanna

    • Like 3
  10. I tried replicating it with yarn version 1.0. It is strange that yarn is not reading the env variables.

    Since you are using yarn, it could help if you rename `.npmrc` to `.yarnrc`. 

    If this still doesn't help, then running the commands on the machine should configure the values:
    ```

    $ yarn config set @gsap:registry https://npm.greensock.com

    $ yarn config set //npm.greensock.com/:_authToken <token here>

    ```

    • Like 3
  11. Hello @Sgt. Red Pepper

    403 error is returned when the yarn or npm cli doesn't get the GSAP token value. 

    Usually yarn cli reads the .npmrc file in the project, but some versions require a .yarnrc file. It would be helpful to know which version of yarn you are using.

    Also, can you make sure whether the env variable is added to the container/vpc? Please note that the variable needs to be exposed to the machine where the `yarn install` command is run. (Many projects don't expose env variables to docker instances hence 403 errors)

    Let me know if this helps

    • Like 2
  12. @stectixsorry about the late response, just saw the message.

    The error is weird - could be due to older version of yarn. If possible, please update the yarn version or use npm to install the package - it should fix it.

    If the above suggestion is not an option, I'd recommend doing this:
    1. Run: `$yarn add @gsap/business`

    2. import like this: `import gsap from '@gsap/business'`

    3. import types like this:
    ```

    "files": [
        "node_modules/@gsap/business/types/index.d.ts"
      ]

    ```

     

    Let me know if this helps. Otherwise I'd be happy to hop on a google meet call as well.

     

    • Like 1
  13. Hi @stectix, @Rodrigo

    This seems to be a confusion caused by npm package aliasing.

    If you install the package using this command: `yarn add gsap@npm:@gsap/business` then the import should be `import gsap from 'gsap'`. This should work as the package manager creates a folder named `gsap` in the `node_modules` directory.

    If you did this, then add the following to compiler options:
    ```

    "files": [
        "node_modules/gsap/types/index.d.ts"
      ]

    ```


    Let me know if this works

    • Like 2
  14. Hello @intothebreach,

    If the .npmrc file contains the access token the installation should proceed without any problems. Some versions of yarn doesn't read local .npmrc file so, it would be good to run this command once:

    npm config set @gsap:registry https://npm.greensock.com
    npm config set //npm.greensock.com/:_authToken xxxx-yyyy-zzzz

    Replace xxxx-yyyy-zzzz with your token. Once you run the above two commands, installation should proceed just fine

    • Like 2
×
×
  • Create New...