Skip to content

Error while running npm install #327

Open
@shreyanshsaha

Description

🐛 Bug Report

console output

npm ERR! code EWORKSPACESCONFIG
npm ERR! workspaces config expects an Array

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shrey/.npm/_logs/2022-01-08T20_38_19_312Z-debug.log

file: /home/shrey/.npm/_logs/2022-01-08T20_38_19_312Z-debug.log

0 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install', '--legacy-peer-deps' ]
1 info using [email protected]
2 info using [email protected]
3 timing config:load:defaults Completed in 1ms
4 timing config:load:file:/usr/share/nodejs/npm/npmrc Completed in 2ms
5 timing config:load:builtin Completed in 2ms
6 timing config:load:cli Completed in 2ms
7 timing config:load:env Completed in 0ms
8 timing config:load:file:/home/shrey/Downloads/kittenTricks/.npmrc Completed in 0ms
9 timing config:load:project Completed in 1ms
10 timing config:load:file:/home/shrey/.npmrc Completed in 0ms
11 timing config:load:user Completed in 0ms
12 timing config:load:file:/etc/npmrc Completed in 1ms
13 timing config:load:global Completed in 1ms
14 timing config:load:cafile Completed in 0ms
15 timing config:load:validate Completed in 0ms
16 timing config:load:setUserAgent Completed in 0ms
17 timing config:load:setEnvs Completed in 1ms
18 timing config:load Completed in 8ms
19 verbose npm-session 92a05858e8a034c7
20 timing npm:load Completed in 17ms
21 timing arborist:ctor Completed in 0ms
22 timing idealTree Completed in 6ms
23 timing command:install Completed in 21ms
24 verbose stack TypeError: workspaces config expects an Array
24 verbose stack     at getError (/usr/share/nodejs/@npmcli/map-workspaces/index.js:72:24)
24 verbose stack     at getPatterns (/usr/share/nodejs/@npmcli/map-workspaces/index.js:36:11)
24 verbose stack     at mapWorkspaces (/usr/share/nodejs/@npmcli/map-workspaces/index.js:88:20)
24 verbose stack     at Arborist.[loadWorkspaces] (/usr/share/nodejs/@npmcli/arborist/lib/arborist/load-workspaces.js:20:30)
24 verbose stack     at /usr/share/nodejs/@npmcli/arborist/lib/arborist/build-ideal-tree.js:297:42
24 verbose stack     at async Arborist.buildIdealTree (/usr/share/nodejs/@npmcli/arborist/lib/arborist/build-ideal-tree.js:206:7)
24 verbose stack     at async Promise.all (index 1)
24 verbose stack     at async Arborist.reify (/usr/share/nodejs/@npmcli/arborist/lib/arborist/reify.js:127:5)
24 verbose stack     at async install (/usr/share/nodejs/npm/lib/install.js:38:3)
25 verbose cwd /home/shrey/Downloads/kittenTricks
26 verbose Linux 5.11.0-41-generic
27 verbose argv "/usr/bin/node" "/usr/bin/npm" "install" "--legacy-peer-deps"
28 verbose node v12.21.0
29 verbose npm  v7.5.2
30 error code EWORKSPACESCONFIG
31 error workspaces config expects an Array
32 verbose exit 1

To Reproduce

Steps to reproduce the behavior:

  1. clone the repo
  2. cd to the repo
  3. run npm install

Expected behavior

npm install should download the required deps

Link to runnable example or repository (highly encouraged)

current repo

UI Kitten and Eva version

Package Version
@eva-design/eva "@eva-design/eva": "^2.1.0"
@ui-kitten/components "@ui-kitten/components": "5.1.0"

Environment information

shrey@ub:~/Downloads/kittenTricks$ npx envinfo --preset react-native
npm ERR! code EWORKSPACESCONFIG
npm ERR! workspaces config expects an Array

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/shrey/.npm/_logs/2022-01-08T20_41_12_302Z-debug-0.log

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions