I am trying to use parcel for the first time. I installed it to my project using the npm install parcel command. Then I tried to start the development server by running the command npx parcel src/index.html and nothing happens. I do not get an error. I allowed the connection when the firewall prompt came up. Does anyone know how to fix this issue?
Result when running npx parcel command
According to Devon Govett, the creator of parcel, this issue is related to an upgrade of napi-rs in the #parcel/source-map package, which was released sometime after Parcel 2.2.1. For now, they have reverted this upgrade and published #parcel/source-map v2.0.2.
Once I read about this update, I uninstalled parcel, deleted my .parcel-cache folder, and reinstalled parcel. Now the npx parcel src/index.html command works for me.
Sources:-
https://github.com/parcel-bundler/parcel/issues/7574#issuecomment-1023422239
https://github.com/parcel-bundler/parcel/issues/7598
Try changing the parcel in devDependencies to "latest". I did this when I had an issue using version 2.6.0 and it worked fine.
Related
I have an issue when I trying to start a new project.
I run 'nest new' to start a project.
And It took too long for installation.
And the result is below.
So I try to run 'npm install' manually.
I thought it is a 'ts-jest' download problem.
So I delete '"ts-jest": "29.0.3"' from 'package.json' devDependencies.
And it works well
I could simply format my PC and install again.
But this doesn't happen before and I'm curious about this.
Is there anybody know what cause it?
Ubuntu : Ubuntu 20.04.3 LTS
node version :16.19.0
nestjs version : 9.2.0
I was following a tutorial on Udemy in order to setup a NestJS app from scratch. Upon execution using npx ts-node-dev src/main.ts I get the error [PackageLoader] No driver (HTTP) has been selected. In order to take advantage of the default driver, please, ensure to install the "#nestjs/platform-express" package ($ npm install #nestjs/platform-express).
I tried uninstalling and reinstalling #nestjs/platform-express but I still get same error.
Finally solved this issue, I had to delete the entire node_modules folder and then run npm install with the same pckage.json file.
nodejs version 14.17.5
vue native version 0.3.0
I am developing an application that requires navigation in APP.
When i give command "npm run start" the application successfully runs.
Package.json dependencies installed:
enter image description here
For navigation when i run command "npm install view-native-router" it shows the error message as below:
enter image description here
Does anybody have the idea what could possibly have gone wrong? Is it a compatibility issue ?
It seems this is not the first time we have a peer dependency problem here and the last issue was marked as solved.
https://github.com/GeekyAnts/vue-native-router/issues/45
Since you have a higher version of vue-native-core in local, try add --legacy-peer-deps to npm install to see if works.
Though --force or --legacy-peer-deps may work for some but not everyone.
My solution is to start using yarn! Install it by the following:
$ npm i -g yarn
After its installed, its advised that you delete the project and redo the vue-native-cli init command so it can use yarn from there, but you can also just directly use the following command without deleting the project:
$ yarn install vue-native-scripts
When I try to create the starter React tutorial app using powershell, I get the below error:
"You are using npm 2.15.12 so the project will be boostrapped with an old unsupported version of tools".
"Please update to npm 3 or higher for a better, fully supported experience".
However, my NPM version is 6.11.3 as seen below.
What I have tried:
I have ran powershell as admin as answered in this question and restart.
I have also uninstalled and reinstalled Nodejs completely.
So after an extra hour digging around, I saw a few posts with similar (but not exactly) the same issue. I decided to install Yarn and install with that.
After install, I ran yarn cache clean and ran npx create-react-app your-app and it worked. Sorry for bothering you all.
I had the same problem. I'm running WSL with ubuntu, and yarn cache clear didn't work, but I noticed a node modules directory created in the project. I think it was messing with the node version so I deleted it. It worked
I am working on a React Native app and suddenly see this :
FAIL Inject RemoteDev monitor into React Native debugger, the file 'react-native\local-cli\server\util\debugger.html' not found.
when i run npm install.
It used to be ok before. I checked the folder AppData\Roaming\npm\node_modules\react-native\local-cli\server\util and the debugger.html file is there.
Here is my package.json script:
"postinstall": "remotedev-debugger"
How can I fix this?
I got this error today after updating to the latest React Native version.
I think you need to update RemoteDev package.
For me, this involved replacing remote-redux-devtools-on-debugger with the latest remotedev-rn-debugger (https://github.com/jhen0409/remotedev-rn-debugger) as the package name had changed.
Upgrade the remotedev-rn-debugger package.
If you use NPM:
npm i remotedev-rn-debugger#latest --save-dev
If you use Yarn:
yarn add remotedev-rn-debugger#latest --dev