npm-install

getting “Error: EINVAL: invalid argument, read” for “npm install --save-dev eslint --verbose”

时光怂恿深爱的人放手 提交于 2019-12-11 07:57:38
问题 Any ideas/assistance here re how to get "npm install --save-dev eslint --verbose" working. I keep getting: Error: EINVAL: invalid argument, read I've setup up a new react-native project: react-native init gcLists E:\gcLists>npm -v 5.5.1 E:\gcLists>yarn -v 1.2.1 E:\gcLists>react-native -v react-native-cli: 2.0.1 react-native: 0.49.5 npm install --save-dev eslint --verbose Last part of the log: npm http fetch GET 304 https://registry.npmjs.org/slice-ansi 104ms (from cache) npm verb correctMkdir

Emberjs : how to import after 'npm install'

丶灬走出姿态 提交于 2019-12-11 07:29:04
问题 Trying to use howler.js (https://github.com/goldfire/howler.js#documentation) in a Controller. There is no addon for Howler but it exists as a npm package. I did an npm install and subsequently got an update in package.json like this : "dependencies": { "bootswatch": "^4.0.0", "howler": "^2.0.9", "npm": "^5.8.0" } In the controller I added this import import {Howl} from 'howler'; But when I try to execute the code I get a runtime error Could not find module 'howler' imported from 'foo

npm installing mmmagic fails

荒凉一梦 提交于 2019-12-11 06:55:20
问题 I am attempting to install mmmagic however I get the following error: npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "mmmagic" npm ERR! node v4.2.6 npm ERR! npm v3.5.2 npm ERR! file sh npm ERR! code ELIFECYCLE npm ERR! errno ENOENT npm ERR! syscall spawn npm ERR! mmmagic@0.4.1 install: `node-gyp rebuild` npm ERR! spawn ENOENT npm ERR! npm ERR! Failed at the mmmagic@0.4.1 install script 'node-gyp rebuild'. npm ERR! Make sure you have the latest version of node.js and npm installed.

npm died completely, ERR_TLS_CERT_ALTNAME_INVALID, Hostname/IP does not match certificate's altnames: Host: registry.npmjs.org

纵然是瞬间 提交于 2019-12-11 06:08:42
问题 I'm running bash on windows (Ubuntu 18) and I recently switched to Yarn, but I needed to use npm again to install truffle and discovered my npm is dead. I tried reinstalling node/npm, even reinstalling Ubuntu itself, but kept getting this same error. Below is the error log. I'm totally lost now... 0 info it worked if it ends with ok 1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'install' ] 2 info using npm@5.6.0 3 info using node@v8.11.4 4 verbose npm-session 6f42a40556042ae5 5 silly

How to create an Azure Devops Buildpipeline for a React APP

元气小坏坏 提交于 2019-12-11 06:05:48
问题 I have created one build pipeline with 2 npm tasks, the installer and then custom script with arguments run-script build, as seen in the screenshot However I get errors and this is in the logs ##[section]Starting: npm custom ============================================================================== Task : npm Description : Install and publish npm packages, or run an npm command. Supports npmjs.com and authenticated registries like Package Management. Version : 1.148.0 Author : Microsoft

Devops npm task with custom command (build) not working

感情迁移 提交于 2019-12-11 04:27:21
问题 I am trying to automate the build process (Azure Devops) for my Vue.js application by making use of "npm" task. To Install the node packages, I have used npm task with built in "install" command. For build process, I have deployed another npm task but with custom command (build). This custom build command runs successfully with the following warning "npm WARN build 'npm build' called with no arguments. Did you mean to 'npm run-script build'?" I believe it is not doing the build at all as when

NPM was installed. I attempt to update and find it's no longer installed

女生的网名这么多〃 提交于 2019-12-11 04:25:14
问题 I installed Node on El Capitan using the package from their website. I check to see if npm is installed and it shows version 2.15.5 is installed. I then routinely check to see if there's an update and accidentally forget to use sudo . I retry again using sudo and it fails saying npm command isn't found. Both which npm and whereis npm fail to return anything. What's going on? 回答1: Well, your npm upgrade failed, which means that either: the symlink /usr/local/bin/npm that pointed to the actual

Install npm local package dependencies

无人久伴 提交于 2019-12-11 03:46:27
问题 I have a npm dependency installed from a local path, which in turn has a few dependencies of its own. As I understand it, in this case npm just copies the contents of the local folder under node_modules. Is there any way to make it run npm install on the package folder before copying it? 回答1: npm install /path/to/foo simply copies from the specified path into your local package's node_modules folder. If this is what you meant by "installed from a local path", then that was the wrong thing to

How do I import jQuery Masonry using ES6 modules?

旧街凉风 提交于 2019-12-11 03:43:10
问题 I am trying to use this npm package https://www.npmjs.com/package/masonry-layout As per install instruction I ran: npm install masonry-layout --save Then in my file, import '../../../node_modules/masonry-layout/dist/masonry.pkgd.min.js' $('.blog-posts-container').masonry({ // options ... itemSelector: '.card-blog', columnWidth: 200 }) I'm trying to import the package in my file and run it, but I get this error: Uncaught TypeError: $(...).masonry is not a function Im thinking there is

Installing npm globally

淺唱寂寞╮ 提交于 2019-12-11 02:45:30
问题 Is it possible to install npm globally and is this a good idea? I installed npm with the npm install command and was able to run npm start. Then after publishing my project to github I wanted to make sure it would run if someone cloned it, so I cloned it to a different directory on my machine. I then had to run npm install again to install the dependencies. Is it necessary to do this for each project you build locally or is it better and possible to install it globally on your machine? Thanks