I'm using the command 'npm -g install parcel-bundler', to install parcel globally and get no error, but then it doesn't seem to be installed. When i run the command 'parcel --version' i get 'command not found', same for any other 'parcel' commands. I've tried running the 'install' command again and I get a '[email protected] updated 2 packages in 20.003s'. i have several 'deprecated' warnings, could the problem come from that ? here they are :
npm WARN deprecated [email protected]: 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. npm WARN deprecated [email protected]: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated [email protected]: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2. npm WARN deprecated [email protected]: https://github.com/lydell/resolve-url#deprecated npm WARN deprecated [email protected]: Please see https://github.com/lydell/urix#deprecated npm WARN deprecated [email protected]: request has been deprecated, see https://github.com/request/request/issues/3142 npm WARN deprecated [email protected]: 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 [email protected]: this library is no longer supported /Users/user.npm-packages/bin/parcel -> /Users/user/.npm-packages/lib/node_modules/parcel-bundler/bin/cli.js
Thanks
EDIT : I have tried updating all the deprecated items manually and re-installing Parcel, it didin't fix the problem.
npmare you using? I encountered this problem today when configuring a development environment on a seldom used laptop. I realized mynpmversion was very out of date at 3.5.2. Once I upgraded to 6.14.10, I was able to installparcel.which npmwas returning/usr/bin/npm, but thenpm install -g npmcommand installs it to/usr/local/bin/npmwithout updating the symlink at/usr/bin/npm. I tried fixing that symlink withln -s /usr/local/bin/npm /usr/bin/npm, but kept getting a circular reference error. In the end I uninstalled everything node and npm, reinstalled with apt, and upgraded it. Still, your version is very recent. I suspect you may have a different problem entirely. Good luck. I'm new to Parcel and love it!