Several of us are getting the error below on both local and CI tools.
netlify dev
TypeError Plugin: netlify-cli: memoizeOne is not a function
module: @oclif/config@1.17.0
task: runHook init
plugin: netlify-cli
root: /home/vagrant/.nvm/versions/node/v10.21.0/lib/node_modules/netlify-cli
See more details with DEBUG=*
TypeError: memoizeOne is not a function
opened 10:52PM - 22 Apr 21 UTC
closed 12:46AM - 23 Apr 21 UTC
type: bug
**Describe the bug**
netlify cli throws error on usage
**To Reproduce**
…
Steps to reproduce the behavior:
1. Install latest version via `npm i -g netlify-cli` where latest version is currently v3.21.5
2. Run `netlify dev`
3. See that the CLI exits with an error
**Configuration**
```
$ npx envinfo --system --binaries --npmPackages netlify-cli --npmGlobalPackages netlify-cli
npx: installed 1 in 1.63s
System:
OS: Linux 4.19 Ubuntu 18.04.4 LTS (Bionic Beaver)
CPU: (4) x64 Intel(R) Core(TM) i7-7920HQ CPU @ 3.10GHz
Memory: 3.19 GB / 7.29 GB
Container: Yes
Shell: 4.4.20 - /bin/bash
Binaries:
Node: 10.21.0 - ~/.nvm/versions/node/v10.21.0/bin/node
Yarn: 1.22.4 - /usr/bin/yarn
npm: 6.14.6 - ~/.nvm/versions/node/v10.21.0/bin/npm
npmGlobalPackages:
netlify-cli: 3.21.5
```
**Expected behavior**
No error
**CLI Output**
```
netlify dev
TypeError Plugin: netlify-cli: memoizeOne is not a function
module: @oclif/config@1.17.0
task: runHook init
plugin: netlify-cli
root: /home/vagrant/.nvm/versions/node/v10.21.0/lib/node_modules/netlify-cli
See more details with DEBUG=*
TypeError: memoizeOne is not a function
```
**Additional context**
Output above is from my system, but this is breaking on our build in Circleci, so I don't think it's just my system.
luke
April 23, 2021, 1:18am
2
Hi, @unclejustin . This is fixed now in version 3.21.6 (just released).
npm i -g netlify-cli
Would you please use the upgrade command above and let us know if you still see any issues?
1 Like
Hi There,
I have tried installing the CLI just today and reinstalled using the command you listed above but I’m still receiving the same error as well.
I’m on windows and also tried running as admin but no luck (although it doesn’t seem like a permissions issue to begin with).
Blockquote memoizeOne is not a function
Hello, I just experienced this on netlify-cli@3.21.8. I downgraded to 3.21.6 and it was gone.
Hey sorry if this is a dumb question but how do you install the specific version of the cli? Is it just npm i -g neltify-cli 3.21.8 ?
@rquiroz32 Not a dumb question! It’s only necessary when things go bad!
You need to use the @ to specify, so use npm install -g netlify-cli@3.21.8