npm

Why does `package-lock.json` causes a failure in a docker container build when `npm install`?

家住魔仙堡 提交于 2021-01-27 21:59:57
问题 There are a lot of people online asking this same question in different ways but there is no clear answer. Can anybody understand enough to explain why a docker build fails when package-lock.json file exists in the application, but runs successfully when it is not? Seemingly it is related to npm but it is not clear. Everybody says delete the package-lock.json , but it is there for a reason. Note: npm install works fine on my local machine, just fails in docker container. If I have this

fresh install of npm generates “ELOOP: too many symbolic links” error

安稳与你 提交于 2021-01-27 21:37:40
问题 I have googled for the answer to this but the "solutions" seem to be missing something in my case. I just tried to update yarn.js to version 2 on Windows 10. Part of the upgrade process wants me to upgrade npm global modules first. running: npm update -g as admin or myself gives me: $ npm update -g npm ERR! code ELOOP npm ERR! syscall stat npm ERR! path \\fs2.my.company.com\Home\ npm ERR! errno -62 npm ERR! ELOOP: too many symbolic links encountered, stat '\\fs2.my.company.com\Home\' npm ERR!

Module build failed (from ./node_modules/sass-loader/dist/cjs.js)

独自空忆成欢 提交于 2021-01-27 20:05:07
问题 I'm trying to run my angular 9 app on windows 10 but getting the following error while trying to serve it locally. Have a look at the error below: ERROR in ./src/assets/sass/pickandpay.scss (./node_modules/css-loader/dist/cjs.js??ref--13-1!./node_modules/postcss-loader/src??embedded!./node_modules/sass-loader/dist/cjs.js??ref--13-3!./src/assets/sass/pickandpay.scss) Module build failed (from ./node_modules/sass-loader/dist/cjs.js): SassError: Undefined variable: "$white-color". on line 99 of

npm not found from Visual Studio code terminal

北战南征 提交于 2021-01-27 17:39:38
问题 When I try to run "npm" from VS Code terminal, I get the error "The term 'npm' is not recognized as the name of a cmdlet, function, script file, or operable program." This used to work in my previous laptop, so it seems I'm missing a configuration or extension? 回答1: Please read the documentation on how to install npm and node on your machine: https://code.visualstudio.com/docs/nodejs/nodejs-tutorial 来源: https://stackoverflow.com/questions/49752254/npm-not-found-from-visual-studio-code

ng serve permission denied 127.0.0.1:4200

别说谁变了你拦得住时间么 提交于 2021-01-27 17:21:03
问题 When trying to ng serve a new angular project it return me an error [error] Error: listen EACCES: permission denied 127.0.0.1:4200 at Server.setupListenHandle [as _listen2] (net.js:1260:19) at listenInCluster (net.js:1325:12) at GetAddrInfoReqWrap.doListen [as callback] (net.js:1458:7) at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:62:10) npm version : 6.4.1 angular cli version : 8.3.25 Node version : 10.15.2 What I've tryed Restart multiple times my computer I've tryed to find if the

AWS Elastic BeanStalk nodejs Deployment error

好久不见. 提交于 2021-01-27 13:51:13
问题 I am stuck in a very weird issue from the last two days. I am trying to deploy my webpack nodejs app on AWS elastic beanstalk. The Environment Health changes from OK to Degraded . I have deployed it many times before but no such issue occurred. First of all, see the logs: /var/log/eb-activity.log /opt/elasticbeanstalk/containerfiles/ebnode.py --action node-install Activity execution failed, because: + /opt/elasticbeanstalk/containerfiles/ebnode.py --action npm-install npm ERR! path /tmp

Can I distribute non javascript files via npm?

萝らか妹 提交于 2021-01-27 13:41:22
问题 Npm is an amazing tool if you use it with typescript or javascript. But as far as I know, It looks like it is possible to distribute any kind of project or language via node / npm. For example, imagine that i created a php phar file that contains some library. Could i use npm to distribute it as a package? Or imagine that i have a css file containing a library of visual styles. Would it be accepted to distribute all those css files via npm, knowing that no javascript code would be present in

node local dependency installs as shortcut and nested instead of flat

时间秒杀一切 提交于 2021-01-27 13:06:21
问题 It seems this started when I updated node/npm but I didn't realized until now when I had to delete and re create my node_modules folder. I have a React Native project which has the core module and one Examples project to showcase the module. The examples project references the module like this in my package.json: "dependencies": { "module-core": "file:../core" }, When I run npm install in the Examples project I was getting this nodule_module structure: node_modules core core_dependency_1 core

ModuleWithProviders<T> requires 1 type argument(s) - angular-autofocus-fix

[亡魂溺海] 提交于 2021-01-27 12:50:42
问题 After installed angular-autofocus-fix imported the AutofocusModule When i run the angular projects its shows below error: ERROR in node_modules/angular-autofocus-fix/index.d.ts:4:23 - error TS2314: Generic type 'ModuleWithProviders<T>' requires 1 type argument(s). static forRoot(): ModuleWithProviders When i check in that node_mudule I am using angular 10 in my project. 回答1: it seems it is not updated for Angular 10, ModuleWithProviders can no longer be used witthout generic (https://angular

Why does `npm install` generate different `package-lock.json` files for the same `package.json` file?

核能气质少年 提交于 2021-01-27 07:40:51
问题 Here is the relevant part of my package.json file: "devDependencies": { "ajv": "^6.0.0", "webpack": "^4.0.0", "websocket": "^1.0.0", "bignumber.js": "^7.0.0", "decimal.js": "^10.0.0", "truffle": "4.1.11", "ganache-cli": "6.1.0", "solidity-coverage": "0.5.4", "ethereumjs-testrpc-sc": "6.1.2", "web3": "1.0.0-beta.34" } I have this file in two different repositories, on the same PC. When I run npm install in each one of these repositories at the same time, I get a different package-lock.json