npm-install

Cannot find module @restart/context/forwardRef during npm build

喜欢而已 提交于 2019-12-24 06:05:04
问题 I recently started having a problem with npm build after upgrading to newer version of react-bootstrap ( 1.0.0-beta.6 ). Creating an optimized production build... Failed to compile. Cannot find module: '@restart/context/forwardRef'. Make sure this package is installed. ./node_modules/react-bootstrap/es/ThemeProvider.js You can install this package by running: yarn add @restart/context/forwardRef. I tried running the provided yarn command but this is not a valid package name. Does anyone have

Angular 6: npm ERR! cb() never called when installing angular cdk

故事扮演 提交于 2019-12-24 02:55:13
问题 I am installing angular material here is what I have done Angular material successfull installed by the following command 1.npm install --save @angular/material Angula CDK fail to install by using the following command 1.npm install --save @angular/cdk I get the following error in cmd: npm WARN tar zlib error: unexpected end of file npm ERR! cb() never called! npm ERR! This is an error with npm itself. Please report this error at: npm ERR! <https://github.com/npm/npm/issues> npm ERR! A

error fsevents@1.0.14 in windows 7

…衆ロ難τιáo~ 提交于 2019-12-23 19:05:23
问题 Hy... I'm trying to install webpack on windows 7 x64 by running this command : npm install webpack -g But then the my command prompt gave an error said "npm WARN notsup Not compatible with your operating system or architecture: fsevents@1.0.14"... I have been reading a loot sources on internet about this issue, for example : installing windows package, using npm init bla bla, using npm shrinkwrap bla bla, deleting node-module directory and start initiializing it again, changing the node.js

error cannot find module 'umask'

社会主义新天地 提交于 2019-12-23 13:27:30
问题 I just installed nodejs x64 on my Windows 10 computer. I keep all default config, I open cmd and type: npm -v Then i got following error: module.js:457 throw err; ^ Error: Cannot find module 'umask' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at Module.require (module.js:483:17) at require (internal/module.js:20:19) at Object.<anonymous> (C:\Users\W10-PRO\AppData\Roaming\npm\node_module\npm\lib\utils\umask.js:1:75) at Module._compile

npm install from tfs feed (on build process) give error: Unable to authenticate

一个人想着一个人 提交于 2019-12-23 09:49:41
问题 We have our own npm package and a project that uses it, I want to publish it to a tfs feed - repository and install it from there instead of from a physical file. I published the package to the feed from my development machine, and I changed the reference within the project that consumes it. The whole process works fine from my machine, but when I try to consume the package on a build process in the tfs - it fails with the error : Unable to authenticate, your authentication token seems to be

How to resolve authentication error in npm install?

我与影子孤独终老i 提交于 2019-12-22 17:49:57
问题 In my package.json I have private repo called somerepo.git. Now I am running an npm install on a buildserver(bamboo) through maven and getting this error: [ERROR] npm ERR! Command failed: git clone --template=/var/home/ci/.npm/_git-remotes/_templates --mirror https://somerepo.git [ERROR] npm ERR! fatal: Authentication failed for https://somerepo.git How can I resolve the authentication for the repository? 回答1: If you can, you should: access the private repo through ssh use a deploy or trusted

node_modules - Zipproto.ts and mergeproto.ts files are not found

半城伤御伤魂 提交于 2019-12-22 08:28:08
问题 I am working on sample application using angular 2 in visual studio 2015. I have copied the quick start configuration files package.json, tsconfig.json. Now after installing npm package dependencies, I am getting following error after building the application. Please find the screenshot. Why the files are not included after installing the packages in node_modules folder? Can anyone help me in resolving the error? 回答1: Check if a tsconfig.json exists in your app root folder. if it does take

How does npm3 decides to install flat vs. nested?

人走茶凉 提交于 2019-12-22 04:58:27
问题 My project depends on angular2 beta.6 and another project that depends on angular2 beta.0. package.json for my project "dependencies": { "angular2": "2.0.0-beta.6", "another-project": "0.0.1" } package.json for another-project "dependencies": { "angular2": "2.0.0-beta.0", } When I npm install my project, it installs angular2 twice: node_modules/angular2 (beta.6) node_modules/another-project/angular2 (beta.0) Trying to understand how npm3 decides to nest angular2 beta.0. Is it because both are

Error: jest-haste-map: Haste module naming collision:

独自空忆成欢 提交于 2019-12-22 02:33:18
问题 I have created a custom npm module (will use xxx instead of its name) and link it manually using npm install . I tried very hard and searched : [Workarounds] Packager unable to resolve module from /Users/node_modules/ Error: jest-haste-map: @providesModule naming collision when using a local dependency before raising a question. I would be thankful if someone tell me what wrong with my code or my approach or any error in my code. When I run react-native run-android following error is raised

It is possible to get the progress of a spawned process from nodejs?

别等时光非礼了梦想. 提交于 2019-12-21 22:50:03
问题 I'm spawning npm install -g create-react-app from a js script. I want to know if it's possible to get the progress of the installation using spawn . const npmExecutable = /^win/.test(process.platform) ? "npm.cmd" : "npm"; const npm = spawn(npmExecutable, ["install", "-g", "create-react-app"]); I have read this question about using: npm.on("message", data => { console.log(`A message: ${data}`); }); but it does not show anything. There is a related question, about knowing the progress of a