npm-install

TypeError trying to run npm run build

谁都会走 提交于 2021-02-10 12:11:52
问题 Running npm run build on my angular application errors out like below. I tried updating the typescript version but it doesn't help. Please suggest what can be done. Can someone please help? I read that this is due to circular dependencies. How do I resolve those in the node_modules? Object prototype may only be an Object or null: undefined TypeError: Object prototype may only be an Object or null: undefined at setPrototypeOf () at Object.__extends (C:\Users\twdas\Documents\SDTM-POC\bitbucket

.bin/authorize-ios not found when installing appium using npm install -g appium

≯℡__Kan透↙ 提交于 2021-02-08 13:54:13
问题 When I try to install appium using npm install -g appium I get the message npm ERR! code ENOENT npm ERR! syscall chmod npm ERR! path /usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios npm ERR! errno -2 npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/appium/node_modules/.bin/authorize-ios' npm ERR! enoent This is related to npm not being able to find a file. npm ERR! enoent If I run the install again I get npm ERR! code ENOENT npm ERR!

npm install in GitHub Action fails with “ENOENT: no such file or directory” - Works fine elsewhere

我是研究僧i 提交于 2021-02-08 13:29:14
问题 I am currently working on replacing our Drone CI installation with GitHub Actions. The Action Workflow I have so far boils down to the following .github/workflows/ci.yml file: on: [ push, pull_request ] name: CI jobs: test: runs-on: ubuntu-latest steps: - name: Checkout uses: actions/checkout@v2 - name: Install Node uses: actions/setup-node@v1 with: node-version: '13.x' - name: Install Dependencies run: npm install The log itself comes out as a long series of npm WARN tar ENOENT: no such file

npm-force-resolutions not working when installing a new package

两盒软妹~` 提交于 2021-02-08 13:15:28
问题 I'm using the scripts section of the package.json to force resolutions: "preinstall": "npx npm-force-resolutions" in the resolutions section, I have entered graceful-fs with a specified version: "resolutions": { "graceful-fs": "^4.2.4", }, When i run npm i everything is installed correctly, the set versions are taken in to account. But later on when I install an additional module, e.g. npm i random-package , my set versions are being thrown away and I endup with graceful-fs@1.2.3 and other

How I can skip installing optional dependencies by 'npm ci'?

試著忘記壹切 提交于 2021-02-08 12:19:36
问题 How I can skip installing optional dependencies from package-lock.json by npm ci ? 回答1: You can use npm ci --no-optional . If npm still installs the optional package. Then try after removing package.lock.json and run the command again. 回答2: A bit late, but you can use npm ci --no-optional . I tested it. Make shure your npm version is a least 6.13.4 (maybe earlier version will work but I can't confirm). 来源: https://stackoverflow.com/questions/53969343/how-i-can-skip-installing-optional

How I can skip installing optional dependencies by 'npm ci'?

瘦欲@ 提交于 2021-02-08 12:18:53
问题 How I can skip installing optional dependencies from package-lock.json by npm ci ? 回答1: You can use npm ci --no-optional . If npm still installs the optional package. Then try after removing package.lock.json and run the command again. 回答2: A bit late, but you can use npm ci --no-optional . I tested it. Make shure your npm version is a least 6.13.4 (maybe earlier version will work but I can't confirm). 来源: https://stackoverflow.com/questions/53969343/how-i-can-skip-installing-optional

Import component from a different repo

筅森魡賤 提交于 2021-02-07 12:31:31
问题 I created a repo in bitbucket which called "angular-lister", the structure of the repo is: Then I created another repo which have the same structure (sort of, cant put picture here and it doesnt really matter). In this second repo I installed my repo using npm i --save path/to/angular-lister.git and I saw it was added to my package json + it's located under my node_modules folder. I am trying to import a component from angular-lister (app/app.component) but I am unable to do it. This is my

npm prepare script not building folder in node modules

爷,独闯天下 提交于 2021-02-07 10:17:31
问题 I am trying to use npm's prepare script to run a build step when npm installing from a different project. The script does run during the npm install however, it doesn't build out the dist folder inside node modules. Refer to this article for more details http://jim-nielsen.com/blog/2018/installing-and-building-an-npm-package-from-github/ 回答1: I also had the same problem. My prepare script wasn't creating the build directory in the node_modules folder when installing as dependency. Finally I

npm prepare script not building folder in node modules

孤者浪人 提交于 2021-02-07 10:16:35
问题 I am trying to use npm's prepare script to run a build step when npm installing from a different project. The script does run during the npm install however, it doesn't build out the dist folder inside node modules. Refer to this article for more details http://jim-nielsen.com/blog/2018/installing-and-building-an-npm-package-from-github/ 回答1: I also had the same problem. My prepare script wasn't creating the build directory in the node_modules folder when installing as dependency. Finally I

No node_modules from netlify deploy

孤人 提交于 2021-02-07 08:59:21
问题 I've got continuous deployment setup with Netlify and a git repo but so far no matter what I do, Netlify isn't npm-install ing anything. There's no node_modules folder when I download a zip of the deploy, my site can't access node_modules, it's just not there. I've started with a random npm package (lodash) to try to get it to install but I've got nothing so far. Netlify says that it automatically runs npm install . I've tried having no build commands and I've tried adding npm install as a