npm

Create-react-app returns “Cannot find module 'rxjs'”

风流意气都作罢 提交于 2021-01-29 09:28:51
问题 I've just installed NodeJS and NPM in a new machine. I added rxjs package in all my existing projects in order to make then start properly. However, when I run create-react-app - using npm globally or npx - I receive "Error: Cannot find module 'rxjs' ". Seems like rxjs is a new dependency of something (considering it's affecting old projects too). I have already changed Node version to 8, 10 and 12. Reinstalled NPM, changed CRA version to 2.x.x and the trouble persists. How can I use CRA

NPM Live-server not installing on zsh

邮差的信 提交于 2021-01-29 08:49:31
问题 I have been trying to install live-server globally with: npm install -g live-server but I keep on getting the error message below; mac@Edozie ~ % npm install -g live-server npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on node v14+. Upgrade to chokidar 3 with 15x less dependencies. npm WARN deprecated opn@6.0.0: The package has been renamed to `open` npm WARN deprecated fsevents@1.2.13: fsevents 1 will break on node v14+ and could be using insecure binaries. Upgrade to fsevents 2.

laravel 8 instalation error - npm run dev throws error

旧时模样 提交于 2021-01-29 08:30:12
问题 I am trying to install a fresh laravel 8 project. After downloading frontend scaffolding when I try to run npm run dev it gives me an error. This problem also happens during installing jetstream in this npm run dev . I am giving error below. unkno@DESKTOP-NAP4DRR MINGW64 /c/laravel projects/example $ npm run dev > @ dev C:\laravel projects\example > npm run development > @ development C:\laravel projects\example > mix [webpack-cli] Running multiple commands at the same time is not possible

Laravel, error when running npm run dev on fresh new installation

百般思念 提交于 2021-01-29 08:25:57
问题 I've just created a new laravel 8 project, but I have an issue when running npm install and npm run dev, more specifically when running npm run dev. I've never had this issue before, and hadn't made any changes to my NodeJs or something like that. I was able to compile my dependencies without any error, but today I encountered this error. Here's the output. Admin@DESKTOP-KH5JMQG MINGW64 /c/Proyectos Web/Dashboarding $ npm install npm WARN deprecated chokidar@2.1.8: Chokidar 2 will break on

Where is npm run looking for the scripts?

微笑、不失礼 提交于 2021-01-29 07:35:57
问题 When I type "npm run test" in the command line, npm goes to package.json, to the "scripts" section and tries to match "test" there. So far so good. Now, the line behind "test" is the following: "JASMINE_CONFIG_PATH=./spec/support/jasmine.json jasmine-run" but the first part (everything except "jasmine-run") can be removed witout problems. [I have a similarily structured project where it works, so I can test these modifications] now: WHERE is npm looking for "jasmine-run" ??? Because since I

Error: listen EADDRINUSE: address already in use :::3000 - Digitalocean

▼魔方 西西 提交于 2021-01-29 07:32:44
问题 I recently followed a video chat tutorial and wanted to host it on Digitalocean to test some webRTC things. I got it working and even got it hosted on Heroku. However, when I go to host it on an unused droplet (running off of the initial $100 free Digitalocean credit) and SSH into my droplet & run npm start (yes, although its not in the tutorials github code, npm start is in the package.json ), I get an error. USER***@nodejs-s-1vcpu-1gb-sfo2-01:~/DIRNAME$ sudo npm start > livestream-server@0

npm install is not adding all dependencies

只谈情不闲聊 提交于 2021-01-29 07:30:53
问题 I issue npm install protractor . Under /path/to/node_modules/protractor/node_modules , i was expecting all the internal dependencies of protractor npm. But i am seeing only one module, q . However in /path/to/node_modules/protractor/package.json , i can see all dependencies of protractor listed as, "dependencies": { "adm-zip": "0.4.4", "glob": "~3.2", "jasmine": "2.3.2", "jasminewd2": "0.0.6", "lodash": "~2.4.1", ................... } Protractor module is versioned "3.0.0" and npm is

npm start fails to run

会有一股神秘感。 提交于 2021-01-29 07:28:05
问题 why does npm start fails to run whenever I restart my MacBook? Is there any code that I would have to run before? Please help. This is the results I get whenever I try.... Debugger attached. npm ERR! code ENOENT npm ERR! syscall open npm ERR! path /Users/somprey/Desktop/demo/package.json npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, open '/Users/somprey/Desktop/demo/package.json' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent npm

The default ASP.NET Core + React template in Visual Studio 2019 doesn't work

南笙酒味 提交于 2021-01-29 07:24:10
问题 After creating the default project from Visual Studio 2019: ASP.NET Core Web Application And then using the React default template(The Weather Forecast one) to create a project, I run it immediately without modifying anything. It builds with no errors, but upon running and opening a tab in the browser, I get an error: compiler.hooks.done.tap('done', async stats => { ^^^^^ SyntaxError: missing ) after argument list at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at

ES6 imports for JWT

こ雲淡風輕ζ 提交于 2021-01-29 07:17:59
问题 I'm making a nodeJS web app and I'm using JWT for authentication. All my work is in ES6 modules and I wanted to import JWT in the same way, but apparently it isn't yet supported by the package. I can't use the older require() format as it throws an error since I've set it to modules in my package.json. Is there a way around this or do I have to find another library altogether? Edit: I have fixed the issue with destructuring but it's still not working. Apparently it can't find the module at