Error: Cannot find module 'nanoid/non-secure' - vuejs2

My project was building up until today. I did not change anything just to be clear. Oddly enough, it is also happening on another NPM project that I had not touched in weeks.
I'm getting the following error (see below). I tried deleting my node_modules and running "npm install" afterwards. It appears that certain libraries are directly referencing "nanoid/non-secure" yet NPM is not installing it. When I install "nanoid" as a devDependency, I get a whole host of other errors.
===============PACKAGE.JSON===================================
{
"name": "sysifix.vue-ui",
"version": "0.0.0",
"description": "Sysifix.VueUI",
"private": true,
"author": {
"name": "Rivera, Rashad"
},
"scripts": {
"serve": "vue-cli-service serve --copy",
"build": "vue-cli-service build --mode production",
"build_dev": "vue-cli-service build --mode development",
"lint": "vue-cli-service lint --no-fix",
"lint_fix": "vue-cli-service lint",
"clean": "",
"test": "jest",
"test_watch": "jest --watchAll"
},
"dependencies": {
"axios": "~0.21.1",
"core-js": "~3.6.5",
"moment": "~2.29.0",
"name-of": "~1.0.2",
"vue": "~2.6.12",
"vue-class-component": "~7.2.6",
"vue-property-decorator": "~9.0.0",
"vue-router": "~3.4.5",
"vue-the-mask": "~0.11.1",
"vue-unique-id": "~3.1.1",
"vuedraggable": "~2.24.3",
"vuetify": "~2.3.12",
"vuetify-confirm": "~2.0.6",
"vuex": "~3.5.1",
"vuex-class": "~0.3.2",
"vuex-router-sync": "~5.0.0"
},
"devDependencies": {
"#fortawesome/fontawesome-free": "~5.15.0",
"#types/jest": "~26.0.14",
"#types/vue-the-mask": "~0.11.1",
"#typescript-eslint/eslint-plugin": "~4.3.0",
"#typescript-eslint/parser": "~4.3.0",
"#vue/cli-plugin-babel": "~4.5.6",
"#vue/cli-plugin-eslint": "~4.5.6",
"#vue/cli-plugin-router": "~4.5.6",
"#vue/cli-plugin-typescript": "~4.5.6",
"#vue/cli-service": "~4.5.6",
"#vue/eslint-config-airbnb": "~5.1.0",
"#vue/eslint-config-typescript": "~5.1.0",
"#vue/test-utils": "~1.1.0",
"babel-core": "~7.0.0-bridge.0",
"babel-jest": "~26.6.3",
"eslint": "~7.10.0",
"eslint-plugin-vue": "~7.0.0",
"jest": "~26.5.3",
"jest-transform-stub": "~2.0.0",
"sass": "~1.26.11",
"sass-loader": "~10.0.2",
"ts-jest": "~26.4.1",
"ts-nameof": "~5.0.0",
"typescript": "~4.0.3",
"vue-cli-plugin-vuetify": "~2.0.7",
"vue-jest": "~3.0.7",
"vue-template-compiler": "~2.6.12",
"vuetify-loader": "~1.7.1"
},
"resolutions": {},
"postcss": {
"plugins": {
"autoprefixer": {}
}
}
}
===============VUE.CONFIG.JSON================================
/* eslint-disable */
module.exports = {
publicPath: process.env.BASE_URL,
transpileDependencies: ['vuetify'],
devServer: {
compress: true,
proxy: {
'^/ui/api': {
pathRewrite: { '^/ui/api': '/api' },
target: process.env.VUE_APP_DEV_API_URL,
ws: true,
changeOrigin: true,
},
},
},
chainWebpack: (config) => {
config.module.rule('vue').uses.delete('cache-loader');
config.module.rule('js').uses.delete('cache-loader');
config.module.rule('tsx').uses.delete('cache-loader');
config.module.rule('ts').uses.delete('cache-loader');
},
parallel: true,
};
===============ERROR===================================
C:\Temp>npm install
npm WARN deprecated request-promise-native#1.0.9: request-promise-native has been deprecated because it extends the now deprecated request package, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/bourne#1.3.2: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/topo#3.1.6: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated urix#0.1.0: Please see https://github.com/lydell/urix#deprecated
npm WARN deprecated har-validator#5.1.5: this library is no longer supported
npm WARN deprecated eslint-loader#2.2.1: This loader has been deprecated. Please use eslint-webpack-plugin
npm WARN deprecated resolve-url#0.2.1: https://github.com/lydell/resolve-url#deprecated
npm WARN deprecated chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated chokidar#2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies.
npm WARN deprecated html-webpack-plugin#3.2.0: 3.x is no longer supported
npm WARN deprecated #hapi/address#2.1.4: Moved to 'npm install #sideway/address'
npm WARN deprecated request#2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
npm WARN deprecated #hapi/hoek#8.5.1: This version has been deprecated and is no longer supported or maintained
npm WARN deprecated #hapi/joi#15.1.1: Switch to 'npm install joi'
npm WARN deprecated core-js#2.6.12: core-js#<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js#3.
added 1928 packages, and audited 1929 packages in 20s
100 packages are looking for funding
run `npm fund` for details
found 0 vulnerabilities
C:\Temp>npm run serve
> sysifix.vue-ui#0.0.0 serve
> vue-cli-service serve --copy
INFO Starting development server...
ERROR Error: Cannot find module 'nanoid/non-secure'
Require stack:
- C:\Temp\node_modules\postcss\lib\input.js
- C:\Temp\node_modules\postcss\lib\parse.js
- C:\Temp\node_modules\postcss\lib\lazy-result.js
- C:\Temp\node_modules\postcss\lib\postcss.js
- C:\Temp\node_modules\#vue\component-compiler-utils\dist\compileStyle.js
- C:\Temp\node_modules\#vue\component-compiler-utils\dist\index.js
- C:\Temp\node_modules\vue-loader\lib\index.js
- C:\Temp\node_modules\#vue\cli-service\lib\config\base.js
- C:\Temp\node_modules\#vue\cli-service\lib\Service.js
- C:\Temp\node_modules\#vue\cli-service\bin\vue-cli-service.js
Error: Cannot find module 'nanoid/non-secure'
Require stack:
- C:\Temp\node_modules\postcss\lib\input.js
- C:\Temp\node_modules\postcss\lib\parse.js
- C:\Temp\node_modules\postcss\lib\lazy-result.js
- C:\Temp\node_modules\postcss\lib\postcss.js
- C:\Temp\node_modules\#vue\component-compiler-utils\dist\compileStyle.js
- C:\Temp\node_modules\#vue\component-compiler-utils\dist\index.js
- C:\Temp\node_modules\vue-loader\lib\index.js
- C:\Temp\node_modules\#vue\cli-service\lib\config\base.js
- C:\Temp\node_modules\#vue\cli-service\lib\Service.js
- C:\Temp\node_modules\#vue\cli-service\bin\vue-cli-service.js
at Function.Module._resolveFilename (internal/modules/cjs/loader.js:880:15)
at Function.Module._load (internal/modules/cjs/loader.js:725:27)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Temp\node_modules\postcss\lib\input.js:6:18)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
at Module.require (internal/modules/cjs/loader.js:952:19)
at require (internal/modules/cjs/helpers.js:88:18)
at Object.<anonymous> (C:\Temp\node_modules\postcss\lib\parse.js:5:13)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32)
at Function.Module._load (internal/modules/cjs/loader.js:769:14)
C:\Temp>npm ls --depth=1
sysifix.vue-ui#0.0.0 C:\Temp
+-- #fortawesome/fontawesome-free#5.15.0
+-- #types/jest#26.0.14
| +-- jest-diff#25.5.0
| `-- pretty-format#25.5.0
+-- #types/vue-the-mask#0.11.1
| `-- vue#2.6.12 deduped
+-- #typescript-eslint/eslint-plugin#4.3.0
| +-- #typescript-eslint/experimental-utils#4.3.0
| +-- #typescript-eslint/parser#4.3.0 deduped
| +-- #typescript-eslint/scope-manager#4.3.0
| +-- debug#4.3.1
| +-- eslint#7.10.0 deduped
| +-- functional-red-black-tree#1.0.1
| +-- regexpp#3.1.0
| +-- semver#7.3.5
| `-- tsutils#3.21.0
+-- #typescript-eslint/parser#4.3.0
| +-- #typescript-eslint/scope-manager#4.3.0 deduped
| +-- #typescript-eslint/types#4.3.0
| +-- #typescript-eslint/typescript-estree#4.3.0
| +-- debug#4.3.1 deduped
| `-- eslint#7.10.0 deduped
+-- #vue/cli-plugin-babel#4.5.6
| +-- #babel/core#7.13.15
| +-- #vue/babel-preset-app#4.5.12
| +-- #vue/cli-service#4.5.6 deduped
| +-- #vue/cli-shared-utils#4.5.12
| +-- babel-loader#8.2.2
| +-- cache-loader#4.1.0
| +-- thread-loader#2.1.3
| `-- webpack#4.46.0
+-- #vue/cli-plugin-eslint#4.5.6
| +-- #vue/cli-service#4.5.6 deduped
| +-- #vue/cli-shared-utils#4.5.12 deduped
| +-- eslint-loader#2.2.1
| +-- eslint#7.10.0 deduped
| +-- globby#9.2.0
| +-- inquirer#7.3.3
| +-- webpack#4.46.0 deduped
| `-- yorkie#2.0.0
+-- #vue/cli-plugin-router#4.5.6
| +-- #vue/cli-service#4.5.6 deduped
| `-- #vue/cli-shared-utils#4.5.12 deduped
+-- #vue/cli-plugin-typescript#4.5.6
| +-- #types/webpack-env#1.16.0
| +-- #vue/cli-service#4.5.6 deduped
| +-- #vue/cli-shared-utils#4.5.12 deduped
| +-- UNMET OPTIONAL DEPENDENCY #vue/compiler-sfc#^3.0.0-beta.14
| +-- cache-loader#4.1.0 deduped
| +-- fork-ts-checker-webpack-plugin-v5#npm:fork-ts-checker-webpack-plugin#5.2.1
| +-- fork-ts-checker-webpack-plugin#3.1.1
| +-- globby#9.2.0
| +-- thread-loader#2.1.3 deduped
| +-- ts-loader#6.2.2
| +-- tslint#5.20.1
| +-- typescript#4.0.3 deduped
| +-- webpack#4.46.0 deduped
| `-- yorkie#2.0.0 deduped
+-- #vue/cli-service#4.5.6
| +-- #intervolga/optimize-cssnano-plugin#1.0.6
| +-- #soda/friendly-errors-webpack-plugin#1.8.0
| +-- #soda/get-current-script#1.0.2
| +-- #types/minimist#1.2.1
| +-- #types/webpack-dev-server#3.11.3
| +-- #types/webpack#4.41.27
| +-- #vue/cli-overlay#4.5.12
| +-- #vue/cli-plugin-router#4.5.6 deduped
| +-- #vue/cli-plugin-vuex#4.5.12
| +-- #vue/cli-shared-utils#4.5.12 deduped
| +-- UNMET OPTIONAL DEPENDENCY #vue/compiler-sfc#^3.0.0-beta.14
| +-- #vue/component-compiler-utils#3.2.0
| +-- #vue/preload-webpack-plugin#1.1.2
| +-- #vue/web-component-wrapper#1.3.0
| +-- acorn-walk#7.2.0
| +-- acorn#7.4.1
| +-- address#1.1.2
| +-- autoprefixer#9.8.6
| +-- browserslist#4.16.4
| +-- cache-loader#4.1.0 deduped
| +-- case-sensitive-paths-webpack-plugin#2.4.0
| +-- cli-highlight#2.1.11
| +-- clipboardy#2.3.0
| +-- cliui#6.0.0
| +-- copy-webpack-plugin#5.1.2
| +-- css-loader#3.6.0
| +-- cssnano#4.1.11
| +-- debug#4.3.1 deduped
| +-- default-gateway#5.0.5
| +-- dotenv-expand#5.1.0
| +-- dotenv#8.2.0
| +-- file-loader#4.3.0
| +-- fs-extra#7.0.1
| +-- globby#9.2.0
| +-- hash-sum#2.0.0
| +-- html-webpack-plugin#3.2.0
| +-- launch-editor-middleware#2.2.1
| +-- lodash.defaultsdeep#4.6.1
| +-- lodash.mapvalues#4.6.0
| +-- lodash.transform#4.6.0
| +-- mini-css-extract-plugin#0.9.0
| +-- minimist#1.2.5
| +-- pnp-webpack-plugin#1.6.4
| +-- portfinder#1.0.28
| +-- postcss-loader#3.0.0
| +-- ssri#~6.0.2 invalid
| +-- terser-webpack-plugin#2.3.8
| +-- thread-loader#2.1.3 deduped
| +-- url-loader#2.3.0
| +-- vue-loader-v16#npm:vue-loader#16.2.0
| +-- vue-loader#15.9.6
| +-- vue-style-loader#4.1.3
| +-- vue-template-compiler#2.6.12 deduped
| +-- webpack-bundle-analyzer#3.9.0
| +-- webpack-chain#6.5.1
| +-- webpack-dev-server#3.11.2
| +-- webpack-merge#4.2.2
| `-- webpack#4.46.0 deduped
+-- #vue/eslint-config-airbnb#5.1.0
| +-- #vue/cli-service#4.5.6 deduped
| +-- eslint-config-airbnb-base#14.2.1
| +-- eslint-import-resolver-node#0.3.4
| +-- eslint-import-resolver-webpack#0.12.2
| +-- eslint-plugin-import#2.22.1
| `-- eslint#7.10.0 deduped
+-- #vue/eslint-config-typescript#5.1.0
| +-- #typescript-eslint/eslint-plugin#4.3.0 deduped invalid
| +-- #typescript-eslint/parser#4.3.0 deduped invalid
| +-- eslint-plugin-vue#7.0.0 deduped
| +-- eslint#7.10.0 deduped
| `-- vue-eslint-parser#7.6.0
+-- #vue/test-utils#1.1.0
| +-- dom-event-types#1.0.0
| +-- lodash#4.17.21
| +-- pretty#2.0.0
| +-- vue-template-compiler#2.6.12 deduped
| `-- vue#2.6.12 deduped
+-- axios#0.21.1
| `-- follow-redirects#1.13.3
+-- babel-core#7.0.0-bridge.0
| `-- #babel/core#7.13.15 deduped
+-- babel-jest#26.6.3
| +-- #babel/core#7.13.15 deduped
| +-- #jest/transform#26.6.2
| +-- #jest/types#26.6.2
| +-- #types/babel__core#7.1.14
| +-- babel-plugin-istanbul#6.0.0
| +-- babel-preset-jest#26.6.2
| +-- chalk#4.1.0
| +-- graceful-fs#4.2.6
| `-- slash#3.0.0
+-- core-js#3.6.5
+-- eslint-plugin-vue#7.0.0
| +-- eslint-utils#2.1.0
| +-- eslint#7.10.0 deduped
| +-- natural-compare#1.4.0
| +-- semver#7.3.5
| `-- vue-eslint-parser#7.6.0 deduped
+-- eslint#7.10.0
| +-- #babel/code-frame#7.12.13
| +-- #eslint/eslintrc#0.1.3
| +-- ajv#6.12.6
| +-- chalk#4.1.0
| +-- cross-spawn#7.0.3
| +-- debug#4.3.1 deduped
| +-- doctrine#3.0.0
| +-- enquirer#2.3.6
| +-- eslint-scope#5.1.1
| +-- eslint-utils#2.1.0 deduped
| +-- eslint-visitor-keys#1.3.0
| +-- espree#7.3.1
| +-- esquery#1.4.0
| +-- esutils#2.0.3
| +-- file-entry-cache#5.0.1
| +-- functional-red-black-tree#1.0.1 deduped
| +-- glob-parent#5.1.2
| +-- globals#12.4.0
| +-- ignore#4.0.6
| +-- import-fresh#3.3.0
| +-- imurmurhash#0.1.4
| +-- is-glob#4.0.1
| +-- js-yaml#3.14.1
| +-- json-stable-stringify-without-jsonify#1.0.1
| +-- levn#0.4.1
| +-- lodash#4.17.21 deduped
| +-- minimatch#3.0.4
| +-- natural-compare#1.4.0 deduped
| +-- optionator#0.9.1
| +-- progress#2.0.3
| +-- regexpp#3.1.0 deduped
| +-- semver#7.3.5
| +-- strip-ansi#6.0.0
| +-- strip-json-comments#3.1.1
| +-- table#5.4.6
| +-- text-table#0.2.0
| `-- v8-compile-cache#2.3.0
+-- jest-transform-stub#2.0.0
+-- jest#26.5.3
| +-- #jest/core#26.6.3
| +-- import-local#3.0.2
| `-- jest-cli#26.6.3
+-- moment#2.29.0
+-- name-of#1.0.2
+-- sass-loader#10.0.2
| +-- UNMET OPTIONAL DEPENDENCY fibers#>= 3.1.0
| +-- klona#2.0.4
| +-- loader-utils#2.0.0
| +-- neo-async#2.6.2
| +-- UNMET OPTIONAL DEPENDENCY node-sass#^4.0.0
| +-- sass#1.26.11 deduped
| +-- schema-utils#2.7.1
| +-- semver#7.3.5
| `-- webpack#4.46.0 deduped
+-- sass#1.26.11
| `-- chokidar#3.5.1
+-- ts-jest#26.4.1
| +-- #types/jest#26.0.14 deduped
| +-- bs-logger#0.2.6
| +-- buffer-from#1.1.1
| +-- fast-json-stable-stringify#2.1.0
| +-- jest-util#26.6.2
| +-- jest#26.5.3 deduped
| +-- json5#2.2.0
| +-- lodash.memoize#4.1.2
| +-- make-error#1.3.6
| +-- mkdirp#1.0.4
| +-- semver#7.3.5
| +-- typescript#4.0.3 deduped
| `-- yargs-parser#20.2.7
+-- ts-nameof#5.0.0
| +-- #ts-nameof/common#4.2.1
| +-- #ts-nameof/transforms-ts#4.2.1
| +-- glob#7.1.6
| `-- typescript#4.0.3 deduped
+-- typescript#4.0.3
+-- vue-class-component#7.2.6
| `-- vue#2.6.12 deduped
+-- vue-cli-plugin-vuetify#2.0.7
| +-- null-loader#3.0.0
| +-- semver#7.3.5
| `-- shelljs#0.8.4
+-- vue-jest#3.0.7
| +-- babel-core#7.0.0-bridge.0 deduped
| +-- babel-plugin-transform-es2015-modules-commonjs#6.26.2
| +-- chalk#2.4.2
| +-- deasync#0.1.21
| +-- extract-from-css#0.4.4
| +-- find-babel-config#1.2.0
| +-- js-beautify#1.13.5
| +-- node-cache#4.2.1
| +-- object-assign#4.1.1
| +-- source-map#0.5.7
| +-- tsconfig#7.0.0
| +-- vue-template-compiler#2.6.12 deduped
| +-- vue-template-es2015-compiler#1.9.1
| `-- vue#2.6.12 deduped
+-- vue-property-decorator#9.0.0
| +-- vue-class-component#7.2.6 deduped
| `-- vue#2.6.12 deduped
+-- vue-router#3.4.5
+-- vue-template-compiler#2.6.12
| +-- de-indent#1.0.2
| `-- he#1.2.0
+-- vue-the-mask#0.11.1
+-- vue-unique-id#3.1.1
+-- vue#2.6.12
+-- vuedraggable#2.24.3
| `-- sortablejs#1.10.2
+-- vuetify-confirm#2.0.6
| +-- vue#2.6.12 deduped
| `-- vuetify#2.3.12 deduped
+-- vuetify-loader#1.7.2
| +-- decache#4.6.0
| +-- file-loader#6.2.0
| +-- loader-utils#2.0.0
| +-- vue-template-compiler#2.6.12 deduped
| +-- vuetify#2.3.12 deduped
| `-- webpack#4.46.0 deduped
+-- vuetify#2.3.12
| `-- vue#2.6.12 deduped
+-- vuex-class#0.3.2
| +-- vue-class-component#7.2.6 deduped
| +-- vue#2.6.12 deduped
| `-- vuex#3.5.1 deduped
+-- vuex-router-sync#5.0.0
| +-- vue-router#3.4.5 deduped
| `-- vuex#3.5.1 deduped
`-- vuex#3.5.1
`-- vue#2.6.12 deduped

I just had the same issue.
Try checking if you're installing the node module in the correct directory, i.e. where you're writing the code for your server.

Related

VertexAI AutoML SavedModel's directory doesn't have the correct structure

I'm trying to export an AutoML model trained on VexterAI to Storage, but the structure of the directory of destiny is wrong. The model was exported with the format id tf-saved-model, a TensorFlow model. The command I used to export was the following:
response = model.export_model(export_format_id='tf-saved-model', artifact_destination='gs://storage_path/')
And I believe the destination directory should have the structure of a TensorFlow SavedModel like:
model/
├── assets/
│ ├── ...
├── saved_model.pb
├── variables/
│ ├── ...
But my directory has the following structure:
model /
├── environment.json
├── feature_attributions.yaml
├── lower_bound/
| ├── 001/
| | ├── assets.extra/
| | | ├── ...
| | ├── assets/
| | | ├── ...
| | ├── saved_model.pb
| | ├── variables/
| | | ├── ...
├── predict/
| ├── 001/
| | ├── assets.extra/
| | | ├── ...
| | ├── assets/
| | | ├── ...
| | ├── saved_model.pb
| | ├── variables/
| | | ├── ...
├── upper_bound/
| ├── 001/
| | ├── assets.extra/
| | | ├── ...
| | ├── assets/
| | | ├── ...
| | ├── saved_model.pb
| | ├── variables/
| | | ├── ...
| ...
I had already searched through so many documentation pages, and I didn't find what I'm doing wrong... Can someone help me?

can't find '#react-navigation/stack' module in ReactNative Project

I changed my npm global root and it's such a mess .. now
this is my npm list,, and I have react-navigation in it but it doesn't work.
npm list
npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion#1, but package-lock.json was generated for lockfileVersion#2. I'll try to do my best with it!
C:\Users\20wjs
+-- UNMET DEPENDENCY #babel/preset-env#7.16.11
+-- #react-navigation/native#6.0.8
| +-- #react-navigation/core#6.1.1
| | +-- #react-navigation/routers#6.1.0
| | | `-- nanoid#3.3.1 deduped
| | +-- escape-string-regexp#4.0.0 deduped
| | +-- nanoid#3.3.1 deduped
| | +-- query-string#7.1.1
| | | +-- decode-uri-component#0.2.0
| | | +-- filter-obj#1.1.0
| | | +-- split-on-first#1.1.0
| | | `-- strict-uri-encode#2.0.0
| | `-- react-is#16.13.1
| +-- escape-string-regexp#4.0.0
| +-- fast-deep-equal#3.1.3
| `-- nanoid#3.3.1
+-- #react-navigation/stack#6.1.1
| +-- #react-navigation/elements#1.3.1
| +-- color#3.2.1
| | +-- color-convert#1.9.3
| | | `-- color-name#1.1.3
| | `-- color-string#1.9.0
| | +-- color-name#1.1.3 deduped
| | `-- simple-swizzle#0.2.2
| | `-- is-arrayish#0.3.2
| `-- warn-once#0.1.0
+-- #types/react#17.0.41
| +-- #types/prop-types#15.7.4
| +-- #types/scheduler#0.16.2
| `-- csstype#3.0.11
+-- #types/react-dom#17.0.14
| `-- #types/react#17.0.41 deduped
+-- #types/react-native#0.67.3
| `-- #types/react#17.0.41 deduped
+-- #types/styled-components#5.1.24
| +-- #types/hoist-non-react-statics#3.3.1
| | +-- #types/react#17.0.41 deduped
| | `-- hoist-non-react-statics#3.3.2 deduped
| +-- #types/react#17.0.41 deduped
| `-- csstype#3.0.11 deduped
+-- #types/styled-components-react-native#5.1.3
| +-- #types/react#17.0.41 deduped
| +-- #types/react-native#0.65.21
| | `-- #types/react#17.0.41 deduped
| `-- #types/styled-components#5.1.24 deduped
+-- UNMET DEPENDENCY react#17.0.2
+-- UNMET DEPENDENCY react-native#0.67.4
+-- UNMET DEPENDENCY react-native-gesture-handler#2.3.2
| +-- #egjs/hammerjs#2.0.17
| | `-- #types/hammerjs#2.0.41
| +-- hoist-non-react-statics#3.3.2
| | `-- react-is#16.13.1 deduped
| +-- UNMET DEPENDENCY invariant#2.2.4
| | `-- UNMET DEPENDENCY loose-envify#1.4.0
| | `-- UNMET DEPENDENCY js-tokens#4.0.0
| +-- lodash#4.17.21
| `-- UNMET DEPENDENCY prop-types#15.8.1
| +-- UNMET DEPENDENCY loose-envify#1.4.0
| +-- object-assign#4.1.1
| `-- react-is#16.13.1 deduped
+-- react-native-paper#4.11.2
| +-- #callstack/react-theme-provider#3.0.7
| | +-- deepmerge#3.3.0
| | `-- hoist-non-react-statics#3.3.2 deduped
| +-- color#3.2.1 deduped
| `-- react-native-iphone-x-helper#1.3.1
+-- UNMET DEPENDENCY react-native-reanimated#2.4.1
| +-- #babel/plugin-transform-object-assign#7.16.7
| | `-- #babel/helper-plugin-utils#7.16.7
| +-- #types/invariant#2.2.35
| +-- UNMET DEPENDENCY invariant#2.2.4
| +-- lodash.isequal#4.5.0
| +-- mockdate#3.0.5
| +-- react-native-screens#3.13.1 deduped
| `-- string-hash-64#1.0.3
+-- react-native-safe-area-context#4.2.1 extraneous
+-- react-native-screens#3.13.1
| +-- react-freeze#1.0.0
| `-- warn-once#0.1.0 deduped
+-- UNMET DEPENDENCY react-native-vector-icons#9.1.0
+-- react-navigation#4.4.4
| +-- #react-navigation/core#3.7.9
| | +-- hoist-non-react-statics#3.3.2 deduped
| | +-- path-to-regexp#1.8.0
| | | `-- isarray#0.0.1
| | +-- query-string#6.14.1
| | | +-- decode-uri-component#0.2.0 deduped
| | | +-- filter-obj#1.1.0 deduped
| | | +-- split-on-first#1.1.0 deduped
| | | `-- strict-uri-encode#2.0.0 deduped
| | `-- react-is#16.13.1 deduped
| `-- #react-navigation/native#3.8.4
| +-- hoist-non-react-statics#3.3.2 deduped
| `-- react-native-safe-area-view#0.14.9
| `-- hoist-non-react-statics#2.5.5
+-- typescript#4.6.2
`-- valid-url#1.0.9
npm ERR! missing: #babel/preset-env#7.16.11, required by 20wjs
npm ERR! missing: react#17.0.2, required by 20wjs
npm ERR! missing: react-native#0.67.4, required by 20wjs
npm ERR! missing: react-native-vector-icons#9.1.0, required by 20wjs
npm ERR! missing: react-native-gesture-handler#2.3.2, required by 20wjs
npm ERR! missing: react-native-reanimated#2.4.1, required by 20wjs
npm ERR! extraneous: #babel/preset-env#7.16.11 C:\Users\20wjs\node_modules\#babel\preset-env
npm ERR! extraneous: react#17.0.2 C:\Users\20wjs\node_modules\react
npm ERR! extraneous: react-native#0.67.4 C:\Users\20wjs\node_modules\react-native
npm ERR! extraneous: react-native-safe-area-context#4.2.1 C:\Users\20wjs\node_modules\react-native-safe-area-context
npm ERR! extraneous: react-native-vector-icons#9.1.0 C:\Users\20wjs\node_modules\react-native-vector-icons
npm ERR! missing: invariant#2.2.4, required by react-native-gesture-handler#2.3.2
npm ERR! missing: prop-types#15.8.1, required by react-native-gesture-handler#2.3.2
npm ERR! missing: loose-envify#1.4.0, required by invariant#2.2.4
npm ERR! missing: js-tokens#4.0.0, required by loose-envify#1.4.0
npm ERR! missing: loose-envify#1.4.0, required by prop-types#15.8.1
npm ERR! missing: invariant#2.2.4, required by react-native-reanimated#2.4.1
And this is my package.json
{
"name": "healthreactnative",
"version": "0.0.1",
"private": true,
"scripts": {
"android": "react-native run-android",
"ios": "react-native run-ios",
"start": "react-native start",
"test": "jest",
"lint": "eslint ."
},
"dependencies": {
"react": "17.0.2",
"react-native": "0.67.2"
},
"devDependencies": {
"#babel/core": "^7.17.5",
"#babel/runtime": "^7.17.2",
"#react-native-community/eslint-config": "^3.0.1",
"babel-jest": "^27.5.1",
"eslint": "^8.9.0",
"jest": "^27.5.1",
"metro-react-native-babel-preset": "^0.68.0",
"react-test-renderer": "17.0.2"
},
"jest": {
"preset": "react-native"
},
"rnpm": {
"assets": ["./src/main/assets/fonts"]
}
}
Can anyone help me..??
Do I lost some modules in node_modules? How can I handle this??
Can you give me some tips how to see this error? How can I install some missing things??
If you run npm install, it tries to pick up the dependencies to install from your package.json. But the problem is #react-navigation/stack is not there.
You need to install that dependency in order to use it. Thus try to install that module like the following:
npm install #react-navigation/stack
You need to install #react-navigation/stack and react-native-gesture-handler,
again, as per your package.json file, these are missing there. Moreover, i can see other modules missing from your package.json, Simply install them and they will add up to your package.json dependencies. This might solve your issues of missing modules.
Ill recommend, dont delete your node_modules folder right away, take notes/list of modules required by your project and npm install them.

Cant Use TYPEORM init

I've already installed typeorm from NPM.
However, when using typeorm in CLI I'm faced with
'typeorm' is not recognized as an internal or external command,
operable program or batch file.
using NPM list I get this list of globally installed packages
+-- pg#8.5.1
| +-- buffer-writer#2.0.0
| +-- packet-reader#1.0.0
| +-- pg-connection-string#2.4.0
| +-- pg-pool#3.2.2
| +-- pg-protocol#1.4.0
| +-- pg-types#2.2.0
| | +-- pg-int8#1.0.1
| | +-- postgres-array#2.0.0
| | +-- postgres-bytea#1.0.0
| | +-- postgres-date#1.0.7
| | `-- postgres-interval#1.2.0
| | `-- xtend#4.0.2
| `-- pgpass#1.0.4
| `-- split2#3.2.2
| `-- readable-stream#3.6.0
| +-- inherits#2.0.4 deduped
| +-- string_decoder#1.3.0
| | `-- safe-buffer#5.2.1 deduped
| `-- util-deprecate#1.0.2
`-- typeorm#0.2.31
+-- #sqltools/formatter#1.2.2
+-- app-root-path#3.0.0
+-- buffer#5.7.1
| +-- base64-js#1.5.1
| `-- ieee754#1.2.1
+-- chalk#4.1.0
| +-- ansi-styles#4.3.0
| | `-- color-convert#2.0.1
| | `-- color-name#1.1.4
| `-- supports-color#7.2.0
| `-- has-flag#4.0.0
+-- cli-highlight#2.1.10
| +-- chalk#4.1.0 deduped
| +-- highlight.js#10.7.1
| +-- mz#2.7.0
| | +-- any-promise#1.3.0
| | +-- object-assign#4.1.1
| | `-- thenify-all#1.6.0
| | `-- thenify#3.3.1
| | `-- any-promise#1.3.0 deduped
| +-- parse5#5.1.1
| +-- parse5-htmlparser2-tree-adapter#6.0.1
| | `-- parse5#6.0.1 extraneous
| `-- yargs#16.2.0 deduped
+-- debug#4.3.1
| `-- ms#2.1.2
+-- dotenv#8.2.0
+-- glob#7.1.6
| +-- fs.realpath#1.0.0
| +-- inflight#1.0.6
| | +-- once#1.4.0 deduped
| | `-- wrappy#1.0.2
| +-- inherits#2.0.4
| +-- minimatch#3.0.4
| | `-- brace-expansion#1.1.11
| | +-- balanced-match#1.0.0
| | `-- concat-map#0.0.1
| +-- once#1.4.0
| | `-- wrappy#1.0.2 deduped
| `-- path-is-absolute#1.0.1
+-- js-yaml#3.14.1
| +-- argparse#1.0.10
| | `-- sprintf-js#1.0.3
| `-- esprima#4.0.1
+-- mkdirp#1.0.4
+-- reflect-metadata#0.1.13
+-- sha.js#2.4.11
| +-- inherits#2.0.4 deduped
| `-- safe-buffer#5.2.1
+-- tslib#1.14.1
+-- xml2js#0.4.23
| +-- sax#1.2.4
| `-- xmlbuilder#11.0.1
+-- yargonaut#1.1.4
| +-- chalk#1.1.3 extraneous
| +-- figlet#1.5.0
| `-- parent-require#1.0.0
`-- yargs#16.2.0
+-- cliui#7.0.4
| +-- string-width#4.2.2 deduped
| +-- strip-ansi#6.0.0
| | `-- ansi-regex#5.0.0
| `-- wrap-ansi#7.0.0
| +-- ansi-styles#4.3.0 deduped
| +-- string-width#4.2.2 deduped
| `-- strip-ansi#6.0.0 deduped
+-- escalade#3.1.1
+-- get-caller-file#2.0.5
+-- require-directory#2.1.1
+-- string-width#4.2.2
| +-- emoji-regex#8.0.0
| +-- is-fullwidth-code-point#3.0.0
| `-- strip-ansi#6.0.0 deduped
+-- y18n#5.0.5
`-- yargs-parser#20.2.7
What am I missing here, I'm trying to follow the steps in the installation guide but I'm stuck in the part where I would be initializing a TYPEORM project.
Looks like you did not install it globally.
Try running npm install typeorm -g and see if this solves your problem.

Oracle return tree having all combinations

I need a query that will return all women within the group.
Example data table (Oracle 11g):
with t as (
select 'K' as GROUP_NAME, 1 as ELEMENT_ID from dual
union
select 'K' as GROUP_NAME, 2 as ELEMENT_ID from dual
union
select 'K' as GROUP_NAME, 3 as ELEMENT_ID from dual
union
select 'L' as GROUP_NAME, 1 as ELEMENT_ID from dual
union
select 'L' as GROUP_NAME, 2 as ELEMENT_ID from dual
union
select 'L' as GROUP_NAME, 3 as ELEMENT_ID from dual
union
select 'P' as GROUP_NAME, 1 as ELEMENT_ID from dual
union
select 'P' as GROUP_NAME, 2 as ELEMENT_ID from dual
union
select 'P' as GROUP_NAME, 3 as ELEMENT_ID from dual
)
select * from t
K 1
K 2
K 3
L 1
L 2
L 3
P 1
P 2
P 3
I need to generate a tree with all the combinations without repeating them in groups (group K, L, P)
A tree must not contain a group of trees, i.e. there must not be a tree with such a branch: K1->L1->K2
K1
+-- L1
+-- P1
+-- P2
+-- P3
+-- L2
+-- P1
+-- P2
+-- P3
+-- L3
+-- P1
+-- P2
+-- P3
K2
+-- L1
+-- P1
+-- P2
+-- P3
+-- L2
+-- P1
+-- P2
+-- P3
+-- L3
+-- P1
+-- P2
+-- P3
K3
+-- L1
+-- P1
+-- P2
+-- P3
+-- L2
+-- P1
+-- P2
+-- P3
+-- L3
+-- P1
+-- P2
+-- P3
L1
+-- K1
+-- P1
+-- P2
+-- P3
+-- K2
....
SELECT ltrim(sys_connect_by_path(group_name || element_id,'-'),'-') FROM t
START WITH t.group_name = 'K'
CONNECT BY ( t.group_name = 'L' AND PRIOR t.group_name = 'K' ) OR ( t.group_name = 'P'
AND PRIOR t.group_name = 'L');
+-----------+
| TREE_PATH |
+-----------+
| K1 |
| K1-L1 |
| K1-L1-P1 |
| K1-L1-P2 |
| K1-L1-P3 |
| K1-L2 |
| K1-L2-P1 |
| K1-L2-P2 |
| K1-L2-P3 |
| K1-L3 |
| K1-L3-P1 |
| K1-L3-P2 |
| K1-L3-P3 |
| K2 |
| K2-L1 |
| K2-L1-P1 |
| K2-L1-P2 |
| K2-L1-P3 |
| K2-L2 |
| K2-L2-P1 |
| K2-L2-P2 |
| K2-L2-P3 |
| K2-L3 |
| K2-L3-P1 |
| K2-L3-P2 |
| K2-L3-P3 |
| K3 |
| K3-L1 |
| K3-L1-P1 |
| K3-L1-P2 |
| K3-L1-P3 |
| K3-L2 |
| K3-L2-P1 |
| K3-L2-P2 |
| K3-L2-P3 |
| K3-L3 |
| K3-L3-P1 |
| K3-L3-P2 |
| K3-L3-P3 |
+-----------+
If you didn't want a tree and just wanted all combinations, that would be a 'CROSS JOIN'. Like so:
select * from t k CROSS JOIN t l CROSS JOIN t p
where k.group_name = 'K'
AND l.group_name = 'L'
and p.group_name = 'P'
+------------+------------+--------------+--------------+--------------+--------------+
| GROUP_NAME | ELEMENT_ID | GROUP_NAME_1 | ELEMENT_ID_1 | GROUP_NAME_2 | ELEMENT_ID_2 |
+------------+------------+--------------+--------------+--------------+--------------+
| K | 1 | L | 1 | P | 1 |
| K | 1 | L | 1 | P | 2 |
| K | 1 | L | 1 | P | 3 |
| K | 1 | L | 2 | P | 1 |
| K | 1 | L | 2 | P | 2 |
| K | 1 | L | 2 | P | 3 |
| K | 1 | L | 3 | P | 1 |
| K | 1 | L | 3 | P | 2 |
| K | 1 | L | 3 | P | 3 |
| K | 2 | L | 1 | P | 1 |
| K | 2 | L | 1 | P | 2 |
| K | 2 | L | 1 | P | 3 |
| K | 2 | L | 2 | P | 1 |
| K | 2 | L | 2 | P | 2 |
| K | 2 | L | 2 | P | 3 |
| K | 2 | L | 3 | P | 1 |
| K | 2 | L | 3 | P | 2 |
| K | 2 | L | 3 | P | 3 |
| K | 3 | L | 1 | P | 1 |
| K | 3 | L | 1 | P | 2 |
| K | 3 | L | 1 | P | 3 |
| K | 3 | L | 2 | P | 1 |
| K | 3 | L | 2 | P | 2 |
| K | 3 | L | 2 | P | 3 |
| K | 3 | L | 3 | P | 1 |
| K | 3 | L | 3 | P | 2 |
| K | 3 | L | 3 | P | 3 |
+------------+------------+--------------+--------------+--------------+--------------+

How to view node_modules dependency tree?

How do I view the dependency graph of a npm-based project?
I tried Madge but it ignores node_modules.
Use npm list -a, e.g.
$ npm list -a
my-app#1.0.0 C:\Dev\my-app
+-- #types/node#9.6.6
+-- #types/react#16.3.13
| `-- csstype#2.4.1
+-- #types/react-dom#16.0.5
| +-- #types/node#9.6.6 deduped
| `-- #types/react#16.3.13 deduped
+-- react#16.3.2
| +-- fbjs#0.8.16
| | +-- core-js#1.2.7
| | +-- isomorphic-fetch#2.2.1
| | | +-- node-fetch#1.7.3
| | | | +-- encoding#0.1.12
| | | | | `-- iconv-lite#0.4.21
| | | | | `-- safer-buffer#2.1.2
| | | | `-- is-stream#1.1.0
| | | `-- whatwg-fetch#2.0.4
| | +-- loose-envify#1.3.1 deduped
| | +-- object-assign#4.1.1 deduped
| | +-- promise#7.3.1
| | | `-- asap#2.0.6
| | +-- setimmediate#1.0.5
| | `-- ua-parser-js#0.7.17
| +-- loose-envify#1.3.1
| | `-- js-tokens#3.0.2
| +-- object-assign#4.1.1
| `-- prop-types#15.6.1
| +-- fbjs#0.8.16 deduped
| +-- loose-envify#1.3.1 deduped
| `-- object-assign#4.1.1 deduped
+-- react-dom#16.3.2
| +-- fbjs#0.8.16 deduped
| +-- loose-envify#1.3.1 deduped
| +-- object-assign#4.1.1 deduped
| `-- prop-types#15.6.1 deduped
`-- typescript#2.8.3
You can use:
npm-remote-ls
Or
You can check http://npm.anvaka.com/#/view/2d/npm-remote-ls
This site allows you to view a packages tree as a node graph in 2D or 3D.