Forum Discussion
charan
Guide
I tried installing lithium-sdk in windows 10, windows-build-tools and gulp got installed without any issue and When i install lithium-sdk with the below command
npm install -g lithium-sdk
i am getting this below error, (note: running as administrator in power shell)
npm WARN enoent SKIPPING OPTIONAL DEPENDENCY: ENOENT: no such file or directory, rename 'C:\Users\rajakc\AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\watchpack\node_modules\fsevents\node_modules\yallist' -> 'C:\Users\rajakc\
AppData\Roaming\npm\node_modules\lithium-sdk\node_modules\watchpack\node_modules\fsevents\node_modules\.yallist.DELETE'
npm ERR! code EEXIST
npm ERR! path C:\Users\rajakc\AppData\Roaming\npm\node_modules\lithium-sdk\bin\li.js
npm ERR! dest C:\Users\rajakc\AppData\Roaming\npm\li
npm ERR! EEXIST: file already exists, cmd shim 'C:\Users\rajakc\AppData\Roaming\npm\node_modules\lithium-sdk\bin\li.js' -> 'C:\Users\rajakc\AppData\Roaming\npm\li'
npm ERR! File exists: C:\Users\rajakc\AppData\Roaming\npm\li
npm ERR! Remove the existing file and try again, or run npm
npm ERR! with --force to overwrite files recklessly.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\rajakc\AppData\Roaming\npm-cache\_logs\2020-04-02T17_59_10_850Z-debug.log
Any solutions?
RobertT
5 years agoBoss
charan have you used NodeJS on your machine prior to attempting to install the SDK and if so what version of NodeJS is currently installed alongside npm?
You can check this by running the following commands in powershell
node -v
npm -v
If you're using NodeJS 8.3.0 and are not relying on it for anything else other than the SDK you might be able to get the SDK to install by running it with the --force flag.
npm install -g lithium-sdk --force
Related Content
- 7 years ago