GithubHelp home page GithubHelp logo

technikhil314 / asdf-pnpm Goto Github PK

View Code? Open in Web Editor NEW
4.0 2.0 0.0 8 KB

Pnpm plugin for asdf version manager

Home Page: https://github.com/technikhil314/asdf-pnpm

License: MIT License

Shell 100.00%
asdf asdf-plugin asdf-vm plugin plugin-repo plugins pnpm pnpm-version version-manager

asdf-pnpm's Introduction

Hi there 👋 I am Nikhil

I am a web developer and devops enthusiast. I like automating mechanical/repetitive tasks. I dont have a formal computer science degree.

I have my own open source projects mainly in react, angular and nodejs space. I am interested in media + web integration especially webrtc and video processing.

You can find more about me on my portfolio site.

Nikhil's GitHub stats

Nikhil's Github profile views

asdf-pnpm's People

Contributors

technikhil314 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

asdf-pnpm's Issues

Not works on macOS

asdf install pnpm latest is failing with error utils.bash: line 59: echoerr: command not found

➜ asdf install pnpm latest                             
➜ asdf install pnpm latest                             
/Users/daniilpronin/.asdf/plugins/pnpm/lib/utils.bash: line 59: echoerr: command not found
cp: /Users/daniilpronin/.asdf/downloads/pnpm/7.1.7/pnpm-7.1.7: No such file or directory
chmod: /Users/daniilpronin/.asdf/installs/pnpm/7.1.7/bin/pnpm: No such file or directory
asdf-pnpm: Expected /Users/daniilpronin/.asdf/installs/pnpm/7.1.7/bin/pnpm to be executable.
asdf-pnpm: An error ocurred while installing pnpm 7.1.7.

Steps to reproduce

  1. asdf plugin add pnpm https://github.com/technikhil314/asdf-pnpm.git
  2. asdf install pnpm latest

Additional context

  • macOS Monterey 12.2 (21D49)
  • MacBook Pro (13-inch, M1, 2020)

ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

I use pnpm installed with asdf and I have this error:

$ pnpm install
Lockfile is up-to-date, resolution step is skipped
 ERR_PNPM_UNSUPPORTED_ENGINE  Unsupported environment (bad pnpm and/or Node.js version)

Your Node version is incompatible with "/@sveltejs/kit/[email protected]".

Expected version: >=16.7
Got: v14.19.2

This is happening because the package's manifest has an engines.node field specified.
To fix this issue, install the required Node version.

@technikhil314 How can I fix it?

This is all information:

$ cat .tool-versions                                                                                                                  1
nodejs 16.15.1
pnpm 7.1.8
$ cat .npmrc
engine-strict=true
$ asdf info
OS:
Linux nuc-i7 5.17.12-300.fc36.x86_64 #1 SMP PREEMPT Mon May 30 16:56:53 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

SHELL:
zsh 5.8.1 (x86_64-redhat-linux-gnu)

ASDF VERSION:
v0.10.1-f8109e0

ASDF ENVIRONMENT VARIABLES:
ASDF_DIR=/home/stephane/.asdf

ASDF INSTALLED PLUGINS:
nodejs                       https://github.com/asdf-vm/asdf-nodejs.git master b2d06a7
pnpm                         https://github.com/technikhil314/asdf-pnpm.git main 56754d7
yarn                         https://github.com/twuni/asdf-yarn.git main 376c540
$ asdf current                                                                                                                      127
nodejs          16.15.1        /poc-svelte-oauth-passport-gitlab/.tool-versions
pnpm            7.1.8           /poc-svelte-oauth-passport-gitlab/.tool-versions
yarn            ______          No version is set. Run "asdf <global|shell|local> yarn <version>"
$ pnpm
Version 7.1.8 (compiled to binary; bundled Node.js v14.19.2)
$ pnpm version                                                                                                                        1
{
  'my-app': '0.0.1',
  npm: '8.11.0',
  node: '16.15.1',
  v8: '9.4.146.24-node.21',
  uv: '1.43.0',
  zlib: '1.2.11',
  brotli: '1.0.9',
  ares: '1.18.1',
  modules: '93',
  nghttp2: '1.47.0',
  napi: '8',
  llhttp: '6.0.4',
  openssl: '1.1.1o+quic',
  cldr: '40.0',
  icu: '70.1',
  tz: '2021a3',
  unicode: '14.0',
  ngtcp2: '0.1.0-DEV',
  nghttp3: '0.1.0-DEV'
}

Best regards,
Stéphane

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.