npm-install

Running NPM mapbox-map-image-export

只谈情不闲聊 提交于 2019-12-11 16:49:52
问题 Im new to NPM/Node and am trying to run a seeingly simple command but am having trouble. Im using VS Code and have used the terminal to clone the GIT repo. Then 'npm install'. I am trying to run the command in the documentation 'export MAPBOX_TOKEN=YOUR_MAPBOX_API_PUBLIC_TOKEN' Based on the instructions on the NPM page https://www.npmjs.com/package/mapbox-map-image-export To do this I type in 'node' then the command above. However I just get three dots appear? 回答1: In Unix systems, export is

Ionic installation on macOs

和自甴很熟 提交于 2019-12-11 15:36:30
问题 I am trying to install ionic and every time I try to install it says: npm WARN deprecated node-uuid@1.4.8: Use uuid module instead and I can't even check ionic -v to check version as it is not installed. I can check npm version as it is installed correctly. ➜ ~ node -v v8.7.0 ➜ ~ npm -v 5.4.2 ➜ ~ npm install -g cordova ionic npm WARN deprecated node-uuid@1.4.8: Use uuid module instead /Users/bilaltariq/.npm-packages/bin/cordova -> /Users/bilaltariq/.npm-packages/lib/node_modules/cordova/bin

NPM package.json base / root property?

蓝咒 提交于 2019-12-11 15:24:51
问题 Is there a package.json property that can be used to specify the root folder that module resolution should start? For example suppose we have an install in node_modules/mypackage/src/file1 . And all the files we want to import start under the src directory. Can we specify something like: { root: ./src/ } And then require('mypackage/file1'); Thoughts? 回答1: ECMAScript modules support an experimental exports property in package.json . You can try something like: { "exports": { "./": "./src/" } }

issue installing react icons with npm

て烟熏妆下的殇ゞ 提交于 2019-12-11 15:15:17
问题 I'm following a react tutorial on lynda.com. I'm trying to install react icons through npm to my react project. I'm getting some weird warnings in the command line that I don't understand. Here's the result in the tutorial vs. my result: This is the tutorial's result the terminal. This is my result in the terminal: Last login: Sat Aug 11 11:54:48 on ttys005 dashiell-bark-husss-macbook-pro-2:bulletin-board dashiellbark-huss$ npm install --save react-icons npm WARN rm not removing /Users

fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' during npm install

爱⌒轻易说出口 提交于 2019-12-11 14:48:39
问题 I am writing code to load c++ dll from electron. My dll is 32 bit. I am using NaN and bindings to achieve this. I used the following commands to set build for 32 bit: node-gyp clean configure build --verbose --arch=ia32 npm set npm_config_arch ia32 npm install --arch=ia32 electron-prebuilt -g When I run npm install I get the following error: fatal error LNK1112: module machine type 'X86' conflicts with target machine type 'x64' Although I am able to build and run my module with the following

angular waypoints typescript error module not found

孤街醉人 提交于 2019-12-11 12:57:17
问题 I installed the waypoints library with npm install waypoints and added types with npm install --save @types/waypoints . I get the error /node_modules/@types/waypoints/index.d.ts' is not a module. Using waypoints.js in Angular 4 application discuses the same problem. The user had the same error. One comment suggests "Use export package_name = package_name. this should work" I didn't know how to implement that. I tried to add export = waypoints export as namespace waypoints; declare namespace

Concerning Node.js was Bootstrap npm package recently deprecated?

痞子三分冷 提交于 2019-12-11 11:11:58
问题 I am trying to install Bootstrap using the npm install method. I have been on this for a while now and am wondering if I am doing something wrong? the npm install is still included on Bootstrap site as well as github and the npm page. From what I understand using bower has been deprecated. Had serious issues using gulp. Any assistance or a link to an updated tutorial would be greatly appreciated. Following errors occured while trying to install via terminal: ~/GitHub/GitSite $ npm install

Encountering an error during npm install with angular 2 quickstart project

有些话、适合烂在心里 提交于 2019-12-11 10:43:33
问题 I'm encountering an issue when attempting to install the dependencies for this repo. It happens during the postinstall script when attempting the typings install command The output I see is: typings ERR! message Unable to read typings for "es6-shim". You should check the entry paths in "es6-shim.d.ts" are up to date typings ERR! caused by Unable to connect to "https://raw.githubusercontent.com/D efinitelyTyped/DefinitelyTyped/7de6c3dd94feaeb21f20054b9f30d5dabc5efabd/es6-shim /es6-shim.d.ts"

NPM package.json not updating after npm install

淺唱寂寞╮ 提交于 2019-12-11 10:19:13
问题 i have package.json: { "dependencies":{ "package": "^3.3.0" } } when i transfer this package.json in another folder and run npm install i get the same package.json even though it should update package to 3.3.2 but when i run npm list version is 3.3.2 So my question is, why is package.json not updating ? 回答1: I just experience a similar issue. My solution is documented here: npm install NOT dowloading latest package I think npm update should resolve your issue. You will also find npm outdated

Unable to install npm package || permission denied

我们两清 提交于 2019-12-11 08:43:03
问题 I am getting the following error while installing PM2. I have also tried installing it locally but nothing seems to be working. please help. Command:npm install pm2 -g anil@anil:~/Desktop/restapis$ npm install pm2 -g npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@^1.0.0 (node_modules/pm2/node_modules/chokidar/node_modules/fsevents): npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@1.1.1: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch