npm-install

Not able to install @angular/cli using npm

半腔热情 提交于 2019-12-18 01:56:32
问题 I am new to "@angular/cli", I have tried every thing but could not install. I am tired now please some one can help me to install angular 4 "@angular/cli" in my system. node and npm Version and when I am installing "npm install -g @angular/cli" then getting after installing node -v 6 I am getting below erorr please suggest me where actually I am wrong. 回答1: It could be issue with your node version. I will suggest you to reinstall node and try it again. Or you can also try to clean node cache

base 64 encode and decode a string in angular (2+)

有些话、适合烂在心里 提交于 2019-12-17 17:47:10
问题 How to encode or decode a string in angular 2 with base64 ??? My front-end tool is Angular 2. I had a password string, before passing it to API I need to base64 encode. Since in service base64 encoded string will be decoded. So I am looking for some base64 encode/decode library for Angular2/Typescript and some options. Thanks!!! 回答1: Use the btoa() function to encode: console.log(btoa("password")); // cGFzc3dvcmQ= To decode, you can use the atob() function: console.log(atob("cGFzc3dvcmQ="));

npm install error code EBUSY errono -4082

天大地大妈咪最大 提交于 2019-12-17 16:52:54
问题 I am running windows7 and have just installed the following... c:\design_centre_dev\workspace>node -v v5.10.1 c:\design_centre_dev\workspace>npm -v 3.8.6 I'm having issues running npm install on my node project which one of my fellow dev's says he has no trouble with and should work for me. When I run npm install i am getting errors like... npm ERR! Windows_NT 6.1.7601 npm ERR! argv "C:\\Program Files (x86)\\nodejs\\node.exe" "C:\\Users\\rriviere\\AppData\\Roaming\\npm\\node_modules\\npm\\bin

How to install grunt and how to build script with it

倾然丶 夕夏残阳落幕 提交于 2019-12-17 14:59:32
问题 Hi I'm trying to install Grunt on Windows 7 64 bit. I have installed Grunt using commands npm install -g grunt npm install -g grunt-cli but now if I try to do grunt init , it is throwing me an error - A valid Gruntfile could not be found. Please see the getting started guide for more information on how to configure grunt: http://gruntjs.com/getting-started Fatal error: Unable to find Gruntfile. But when I look inside the grunt folder on my system the Gruntfile.js is there. can someone please

Install specific branch from github using Npm

别说谁变了你拦得住时间么 提交于 2019-12-17 10:30:46
问题 I would like to install bootstrap-loader from github in my project using npm Currently they are maintaining two version of this project which are comaptible with webpack version 1 and 2. I would like to install version 1. What npm command I should use to install this? I tried using below one but it is not working. npm install git://github.com/shakacode/bootstrap-loader.git[#v1] --Save 回答1: There are extra square brackets in the command you tried. To install the latest version from the v1

How do I fix the npm UNMET PEER DEPENDENCY warning?

一世执手 提交于 2019-12-17 02:35:30
问题 I'm on Windows 10, with Node 5.6.0 and npm 3.6.0. I'm trying to install angular-material and mdi into my working folder. npm install angular-material mdi errors with: +-- angular@1.5.0 +-- UNMET PEER DEPENDENCY angular-animate@^1.5.0 +-- UNMET PEER DEPENDENCY angular-aria@^1.5.0 +-- angular-material@1.0.6 +-- UNMET PEER DEPENDENCY angular-messages@^1.5.0 `-- mdi@1.4.57 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\xxxxx\Desktop\ngClassifieds\package.json' npm WARN angular

Add npm pckage in odoo

岁酱吖の 提交于 2019-12-14 03:35:27
问题 I want to use a npm package in odoo so that I can use that in odoo widget. I have seen that odoo web add on somehow uses underscore js and query. But I am not able to use npm package in odoo. I have tried to load it by creating package.json file inside the addon folder but it is not working. Please Help!! 回答1: The common pattern is to put all dependencies directly copied in the static/src/lib/ folder of the addon, and enable them in a templates/assets.xml file. Using npm would be

Can't find Python executable “/path/to/executable/python2.7”, you can set the PYTHON env variable

删除回忆录丶 提交于 2019-12-14 00:18:40
问题 bufferutil@1.2.1 install /home/sudthenerd/polymer-starter-kit-1.2.1/node_modules/bufferutil > node-gyp rebuild gyp ERR! configure error gyp ERR! stack Error: Can't find Python executable "/path/to/executable/python2.7", you can set the PYTHON env variable . gyp ERR! stack at failNoPython (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:401:14) gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:330:11 gyp ERR! stack at F (/usr/lib/node_modules

GitLab private runner stuck on npm install

孤街浪徒 提交于 2019-12-13 20:23:56
问题 I'm trying to set up a CI pipeline on GitLab.com using a private runner instead of a shared one. The project uses Node, so I'm using a node:6 image. The .gitlab-ci.yml looks like this: image: node:6 stages: - test javascript_tests: stage: test script: - npm install - npm run test:unit when: always The runner stays on "running" stage for about 30 minutes and only then started to output something relevant: npm ERR! fetch failed http://10.252.156.164:4880/@types%2fjsforce/-/jsforce-1.9.2.tgz npm

Chart.js not installing with NPM

点点圈 提交于 2019-12-13 18:11:34
问题 I am trying to install chart.js . Their documentation for how to install the package with NPM is here : http://www.chartjs.org/docs/latest/getting-started/installation.html It says to enter the following with NPM to install. npm install chart.js --save However, it doesn't work for me. I get the followin error in my console when I try to install chart.js with NPM. C:\Users\Hashim AHmed\Desktop\Hashim\coding\Project_PlasmaBird\yahoo_finance>npm install chart.js --save npm ERR! not a package (MY