npm-install

Node.js deployment fails on Amazon Elastic Beanstalk due to directory permissions

人盡茶涼 提交于 2019-12-01 22:29:23
问题 I am try to install a simple Node.js application on Elastic Beanstalk using the command line tools. On my git repository I run the command $ eb deploy to deploy the contents of my git repository. It deploys fine however the Health status of the application is Red. If I look at the logs on the Elastic Beanstalk website, it points me to the following error in the logs: > fsevents@1.0.8 install /tmp/deployment/application/node_modules/nodemon/node_modules/chokidar/node_modules/fsevents > node

python.exe Syntax issue - NPM

痴心易碎 提交于 2019-12-01 21:10:40
I am having trouble when running Npm install. I get the following error: gyp ERR! stack Error: Command failed: C:\Users\userxxx\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12) gyp ERR! stack at emitTwo (events.js:126:13) gyp ERR! stack at ChildProcess.emit (events.js:214:7) gyp ERR!

Difference between - and — (single and double dash) in npm commands

时间秒杀一切 提交于 2019-12-01 21:08:36
Am wondering if this question is already addressed or not. I have used few commands like this : npm install -g npm install -d Then i have used few like : npm install XYZ --save-dev npm install --only=dev Whats the fundamental difference between - and -- ? Has it got to do anything with primary and secondary arguments ? No, it's simply that by convention, *nix command line switches that are only one dash (-d) are only one character. Those with two dashes (--save) are multiple characters long. Both are optional. See https://serverfault.com/questions/387935/whats-the-difference-betwen-the-single

Getting Error: Cannot find module './src/init' when trying to initialize a react native app

僤鯓⒐⒋嵵緔 提交于 2019-12-01 20:26:26
问题 When I try to install react native with the command react-native init ProjectName I get the following: This will walk you through creating a new React Native project in C:\Users\Xegano\Documents\ProjectName Installing react-native package from npm... Setting up new React Native app in C:\Users\Xegano\Documents\ProjectName module.js:457 throw err; ^ Error: Cannot find module './src/init' at Function.Module._resolveFilename (module.js:455:15) at Function.Module._load (module.js:403:25) at

python.exe Syntax issue - NPM

半世苍凉 提交于 2019-12-01 19:13:52
问题 I am having trouble when running Npm install. I get the following error: gyp ERR! stack Error: Command failed: C:\Users\userxxx\AppData\Local\Programs\Python\Python37-32\python.EXE -c import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack File "<string>", line 1 gyp ERR! stack import sys; print "%s.%s.%s" % sys.version_info[:3]; gyp ERR! stack ^ gyp ERR! stack SyntaxError: invalid syntax gyp ERR! stack gyp ERR! stack at ChildProcess.exithandler (child_process.js:276:12) gyp ERR!

Getting Error: Cannot find module './src/init' when trying to initialize a react native app

こ雲淡風輕ζ 提交于 2019-12-01 18:44:17
When I try to install react native with the command react-native init ProjectName I get the following: This will walk you through creating a new React Native project in C:\Users\Xegano\Documents\ProjectName Installing react-native package from npm... Setting up new React Native app in C:\Users\Xegano\Documents\ProjectName module.js:457 throw err; ^ Error: Cannot find module './src/init' 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

gyp ERR! stack Error: `C:\\Program Files (x86)\\MSBuild\\14.0\\bin\\msbuild.exe`

不问归期 提交于 2019-12-01 18:40:42
I'm getting the following error when I run my Jenkins job. I've installed MSBuild 15 and 17 and specified the correct path. Can anyone shed some light on this? Where the issue is. Thanks. (x86)\Jenkins\workspace\POS4> npm install pos4@1.0.10 install C:\Program Files (x86)\Jenkins\workspace\POS4 node-gyp rebuild C:\Program Files (x86)\Jenkins\workspace\POS4>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin\....\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node "C:\Program Files\nodejs\node_modules\npm\node

Angular2 - npm install didn't find namespace webdriver

丶灬走出姿态 提交于 2019-12-01 15:18:39
After reinitiating an Angular2 project, I've launch the command npm install and got the following error : node_modules/protractor/built/browser.d.ts(258,37): error TS2503: Cannot find namespace 'webdriver' Anyone knows where it comes from/ how can I fixed it ? Thanking you, Update 21-12-2016: This is fixed as of protractor 4.0.14. protractor has a dependency on selenium-webdriver: '@types/selenium-webdriver': '~2.53.31', unfortunately, https://github.com/DefinitelyTyped/DefinitelyTyped/pull/13382 was merged yesterday and released as 2.53.37. Temporary fix : manually installing version 2.53.36

Node can't find certain modules after synchronous install

北城余情 提交于 2019-12-01 12:37:06
I've got a script that synchronously installs non-built-in modules at startup that looks like this const cp = require('child_process') function requireOrInstall (module) { try { require.resolve(module) } catch (e) { console.log(`Could not resolve "${module}"\nInstalling`) cp.execSync(`npm install ${module}`) console.log(`"${module}" has been installed`) } console.log(`Requiring "${module}"`) try { return require(module) } catch (e) { console.log(require.cache) console.log(e) } } const http = require('http') const path = require('path') const fs = require('fs') const ffp = requireOrInstall(

npm UNMET PEER DEPENDENCY error, Can't install braintree

跟風遠走 提交于 2019-12-01 12:11:27
I'm trying somethings with braintree and firebase functions. But when i run: npm install braintree My terminal says: PS C:\Users\Hugo\Desktop\The store\web2\store\functions> npm install braintree functions@ C:\Users\Hugo\Desktop\The store\web2\store\functions +-- braintree@2.4.0 `-- UNMET PEER DEPENDENCY firebase-admin@5.4.3 +-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or directory, open 'C:\Users\Hugo\Desktop\The store\web2\store\functions\node_modules\firebase-admin\node_modules\tslint\package.json `-- UNMET PEER DEPENDENCY extraneous error: ENOENT: no such file or