npx

I'm having a problem that can't create react app using npx command

天大地大妈咪最大 提交于 2020-08-20 12:08:05
问题 I can't use npx create-react-app <projectname> to create my react project. The console give out this: Must use import to load ES Module: C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules\create-react-app\node_modules\is-promise\index.js // require() of ES modules is not supported. // require() of C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules\create-react-app\node_modules\is-promise\index.js from C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules

I'm having a problem that can't create react app using npx command

ⅰ亾dé卋堺 提交于 2020-08-20 12:07:52
问题 I can't use npx create-react-app <projectname> to create my react project. The console give out this: Must use import to load ES Module: C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules\create-react-app\node_modules\is-promise\index.js // require() of ES modules is not supported. // require() of C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules\create-react-app\node_modules\is-promise\index.js from C:\Users\user\AppData\Roaming\npm-cache\_npx\4536\node_modules

I can't install react using npx create-react-app?

牧云@^-^@ 提交于 2020-08-01 03:22:13
问题 I am trying to use npx create-react app but i have errors that is shown below: npm ERR! Unexpected end of Json input while parsing near '...eact-app/-/create-rea' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\dp\AppData\Roaming\npm-cache\_logs\2018-12-06T18-42-56-293Z-debug.log Install for create-react-app@latest failed with code 1** and the log file of the error is here...! How I can get rid of this trouble?? 0 info it worked if it ends with ok 1 verbose cli [ 'C:\

Unable to create new react app with npx create-react-app command

房东的猫 提交于 2020-06-04 13:29:27
问题 I am trying to create new react app with npx create-react-app [name] command. But I get following error error Couldn't find package "@babel/plugin-transform-flow-strip-types@7.9.0" required by "babel-preset-react-app@^9.1.2" on the "npm" registry. Each time its saying some package could not be found on npm registry(not only @babel/plugin-transform-flow-strip-types@7.9.0 this package). I also updated my npm and npx still no success. 回答1: Can you try with these steps? Prerequisite: You should

Unable to create new react app with npx create-react-app command

╄→尐↘猪︶ㄣ 提交于 2020-06-04 13:23:13
问题 I am trying to create new react app with npx create-react-app [name] command. But I get following error error Couldn't find package "@babel/plugin-transform-flow-strip-types@7.9.0" required by "babel-preset-react-app@^9.1.2" on the "npm" registry. Each time its saying some package could not be found on npm registry(not only @babel/plugin-transform-flow-strip-types@7.9.0 this package). I also updated my npm and npx still no success. 回答1: Can you try with these steps? Prerequisite: You should

npx create-react-app my-app command gives an error

本小妞迷上赌 提交于 2020-04-30 09:30:50
问题 I want to start my react app so I write this command: npx create-react-app my-app but it gives this type of error... npm ERR! Unexpected end of JSON input while parsing near '...sion":"6.1.0","depend' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dobriya\AppData\Roaming\npm-cache\_logs\2020-04-27T13_19_55_877Z-debug.log Install for [ 'create-react-app@latest' ] failed with code 1 my node version: 12.16.2 my npm version: 6.14.4 Here is that log file : 0 info it worked

npx create-react-app my-app command gives an error

狂风中的少年 提交于 2020-04-30 09:30:02
问题 I want to start my react app so I write this command: npx create-react-app my-app but it gives this type of error... npm ERR! Unexpected end of JSON input while parsing near '...sion":"6.1.0","depend' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dobriya\AppData\Roaming\npm-cache\_logs\2020-04-27T13_19_55_877Z-debug.log Install for [ 'create-react-app@latest' ] failed with code 1 my node version: 12.16.2 my npm version: 6.14.4 Here is that log file : 0 info it worked

npx create-react-app my-app command gives an error

拥有回忆 提交于 2020-04-30 09:29:26
问题 I want to start my react app so I write this command: npx create-react-app my-app but it gives this type of error... npm ERR! Unexpected end of JSON input while parsing near '...sion":"6.1.0","depend' npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\Dobriya\AppData\Roaming\npm-cache\_logs\2020-04-27T13_19_55_877Z-debug.log Install for [ 'create-react-app@latest' ] failed with code 1 my node version: 12.16.2 my npm version: 6.14.4 Here is that log file : 0 info it worked

npx create-react-app not working “Must use import to load ES Module:”

让人想犯罪 __ 提交于 2020-04-29 12:22:17
问题 I've tried reinstalling node and removing appdata/roaming/npm and npm-cache. I've created several apps before so i'm not sure what's going on. Any help is appreciated. 回答1: this issue is fixed with 2.2.2 version of is-promise package. If you still experience problems creating new CRA, consider npm install -g --force create-react-app If even then bug is still present, please comment your issue to this github issue 回答2: I would: Restart the machine. Ensure you log out of your session if needed

npx create-react-app not working “Must use import to load ES Module:”

和自甴很熟 提交于 2020-04-29 12:14:20
问题 I've tried reinstalling node and removing appdata/roaming/npm and npm-cache. I've created several apps before so i'm not sure what's going on. Any help is appreciated. 回答1: this issue is fixed with 2.2.2 version of is-promise package. If you still experience problems creating new CRA, consider npm install -g --force create-react-app If even then bug is still present, please comment your issue to this github issue 回答2: I would: Restart the machine. Ensure you log out of your session if needed