Open ethazhya2k13 opened 1 year ago
Hello, As this is custom library, it won't be available in the npm registry, you have to do npm link, [image: image.png]
I have added the steps for same in the medium blog, please let me know, if you still have issues
Thanks, Suhas 9739117755
On Thu, Mar 16, 2023 at 3:20 PM ethazhya2k13 @.***> wrote:
I am facing an issue while trying install share-lib package . import { ShareLibModule } from 'share-lib'; It is showing this error "Cannot find module 'share-lib' or its corresponding type declarations.ts(2307)" . And this error stating that the package does not exists "npm WARN config global --global, --local are deprecated. Use --location=global instead. npm ERR! code E404 npm ERR! 404 Not Found - GET @.***%2fshare-lib
- Not found npm ERR! 404 npm ERR! 404 @.**@.' is not in this registry. npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ethazhya.muthu\AppData\Local\npm-cache_logs\2023-03-16T09_44_20_719Z-debug-0.log
D:\projects\ui\micro-frontend\git\mfe1>npm cache clean --force npm WARN config global --global, --local are deprecated. Use --location=global instead. npm WARN using --force Recommended protections disabled.
D:\projects\ui\micro-frontend\git\mfe1>npm install -g @.*** npm WARN config global --global, --local are deprecated. Use --location=global instead. npm WARN config global --global, --local are deprecated. Use --location=global instead."
— Reply to this email directly, view it on GitHub https://github.com/suhas5/shell/issues/1, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA7ZRKWGMPQKBAQRVIP7A3DW4LO5NANCNFSM6AAAAAAV463Q7Q . You are receiving this because you are subscribed to this thread.Message ID: @.***>
I am facing an issue while trying install share-lib package . import { ShareLibModule } from 'share-lib'; It is showing this error "Cannot find module 'share-lib' or its corresponding type declarations.ts(2307)" . And this error stating that the package does not exists "npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead. npm ERR! code E404 npm ERR! 404 Not Found - GET https://registry.npmjs.org/@types%2fshare-lib - Not found npm ERR! 404 npm ERR! 404 '@types/share-lib@1.0.0' is not in this registry.npm ERR! 404 npm ERR! 404 Note that you can also install from a npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\ethazhya.muthu\AppData\Local\npm-cache_logs\2023-03-16T09_44_20_719Z-debug-0.log
D:\projects\ui\micro-frontend\git\mfe1>npm cache clean --force npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead. npm WARN using --force Recommended protections disabled.D:\projects\ui\micro-frontend\git\mfe1>npm install -g npm@latest npm WARN config global
--global
,--local
are deprecated. Use--location=global
instead. npm WARN config global--global
,--local
are deprecated. Use--location=global
instead."