‘npx react-native link ‘ this command isnt working to link assets to the project. the error says: unknow command ‘link’
to link the assets with project app in react native
kindly post the answer for this.
even if i use npx react-native-asset command., i still face errors:
$ npx react-native-asset
node:fs:1643
const stats = binding.lstat(
^
Error: ENOENT: no such file or directory, lstat ‘C:UsersdbznaDesktopmern stackblooddonation1clientassetsfonts’
at Object.lstatSync (node:fs:1643:25)
at loadAsset (C:UsersdbznaAppDataLocalnpm-cache_npx545c366a5ae830a2node_modulesreact-native-assetlibindex.js:80:22)
at Array.forEach ()
at C:UsersdbznaAppDataLocalnpm-cache_npx545c366a5ae830a2node_modulesreact-native-assetlibindex.js:94:15
at Array.forEach ()
at module.exports (C:UsersdbznaAppDataLocalnpm-cache_npx545c366a5ae830a2node_modulesreact-native-assetlibindex.js:288:6)
at Object. (C:UsersdbznaAppDataLocalnpm-cache_npx545c366a5ae830a2node_modulesreact-native-assetlibcli.js:56:1)
at Module._compile (node:internal/modules/cjs/loader:1376:14)
at Module._extensions..js (node:internal/modules/cjs/loader:1435:10)
at Module.load (node:internal/modules/cjs/loader:1207:32) {
errno: -4058,
code: ‘ENOENT’,
syscall: ‘lstat’,
path: ‘C:UsersdbznaDesktopmern stackblooddonation1clientassetsfonts’
}
Node.js v20.11.1
NITHEESH S RA2111047010194 is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.