node-modules

Getting strange error using UUID npm module. What am I doing wrong?

天涯浪子 提交于 2020-05-15 06:00:14
问题 Getting "Error: Package exports for 'D:\test\node_modules\uuid' do not define a '.' subpath" all the time when I require it. OS - Windows 10 Pro Node version - v13.1.0 NPM version - 6.14.4 I created a project from scratch and run npm init -y to create initial package.json Then I installed uuid by running npm install uuid and created index.js with nothing but only const { v4: uuidv4 } = require('uuid'); uuidv4(); from their example But whenever I try to run this code node ./index.js I always

Why does “npm install git repo url” rewrite package-lock.json?

◇◆丶佛笑我妖孽 提交于 2020-05-09 06:11:50
问题 I am running the npm install in a public GitHub repo and it has locked the express at 4.17.0 in package-lock.json file which is the correct behavior of package-lock.json file. However, when I execute npm install git+https://github.com/nabeel-nazir confiz/package.lock.master.git in an empty folder then a package-lock.json file created with the new version of express locked at 4.17.1 . I know there is a caret ^ sign in the source package.json but why the source package-lock.json is ignored this

Why does “npm install git repo url” rewrite package-lock.json?

前提是你 提交于 2020-05-09 06:11:49
问题 I am running the npm install in a public GitHub repo and it has locked the express at 4.17.0 in package-lock.json file which is the correct behavior of package-lock.json file. However, when I execute npm install git+https://github.com/nabeel-nazir confiz/package.lock.master.git in an empty folder then a package-lock.json file created with the new version of express locked at 4.17.1 . I know there is a caret ^ sign in the source package.json but why the source package-lock.json is ignored this

Why does “npm install git repo url” rewrite package-lock.json?

≡放荡痞女 提交于 2020-05-09 06:11:31
问题 I am running the npm install in a public GitHub repo and it has locked the express at 4.17.0 in package-lock.json file which is the correct behavior of package-lock.json file. However, when I execute npm install git+https://github.com/nabeel-nazir confiz/package.lock.master.git in an empty folder then a package-lock.json file created with the new version of express locked at 4.17.1 . I know there is a caret ^ sign in the source package.json but why the source package-lock.json is ignored this

TYPESCRIPT/Material Design/Webpack : Cannot find module '@material/base' and Generic type 'MDCComponent<FoundationType>' requires 1 type argument(s)

坚强是说给别人听的谎言 提交于 2020-04-18 05:36:15
问题 I have a new problem. I try to use material design (materiel.io) with Typescript and Webpack. First, I installed material with npm. Then, in one of my classes, I import @material/base. 'use strict'; import {MDCComponent} from '@material/base'; export default class Component { MDCComponent: MDCComponent; constructor() { this.MDCComponent = undefined; } } In my editor, I already have the following message: Cannot find module '@material/base'.ts(2307) For information, I use visual studio code

TYPESCRIPT/Material Design/Webpack : Cannot find module '@material/base' and Generic type 'MDCComponent<FoundationType>' requires 1 type argument(s)

半腔热情 提交于 2020-04-18 05:36:12
问题 I have a new problem. I try to use material design (materiel.io) with Typescript and Webpack. First, I installed material with npm. Then, in one of my classes, I import @material/base. 'use strict'; import {MDCComponent} from '@material/base'; export default class Component { MDCComponent: MDCComponent; constructor() { this.MDCComponent = undefined; } } In my editor, I already have the following message: Cannot find module '@material/base'.ts(2307) For information, I use visual studio code

TypeError: null is not an object (evaluating 'RNGestureHandlerModule.default.Direction')

我只是一个虾纸丫 提交于 2020-04-18 04:03:10
问题 I have problem with module 'react-navigation-stack' I've written the same code from https://facebook.github.io/react-native/docs/navigation#react-navigation. Platform: Android. OS: ubuntu import { createAppContainer } from 'react-navigation'; import { createStackNavigator } from 'react-navigation-stack'; import SearchScreen from './scr/screen/SearchScreen'; const navigator = createStackNavigator( { Search: SearchScreen }, { initialRouteName: 'Search', defaultNavigationOptions: { title: 'App'

TypeError: null is not an object (evaluating 'RNGestureHandlerModule.default.Direction')

北城以北 提交于 2020-04-18 04:03:10
问题 I have problem with module 'react-navigation-stack' I've written the same code from https://facebook.github.io/react-native/docs/navigation#react-navigation. Platform: Android. OS: ubuntu import { createAppContainer } from 'react-navigation'; import { createStackNavigator } from 'react-navigation-stack'; import SearchScreen from './scr/screen/SearchScreen'; const navigator = createStackNavigator( { Search: SearchScreen }, { initialRouteName: 'Search', defaultNavigationOptions: { title: 'App'

npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json'

元气小坏坏 提交于 2020-04-07 11:25:16
问题 I just want to install socket.io to my project which is located on 3.chat folder. But when I run following command it shows following Warnings.And its not created a node_modules directory inside my project folder. How to fix this? C:\Users\Nuwanst\Documents\NodeJS\3.chat>npm install socket.io C:\Users\Nuwanst `-- socket.io@2.0.3 npm WARN enoent ENOENT: no such file or directory, open 'C:\Users\Nuwanst\package.json' npm WARN Nuwanst No description npm WARN Nuwanst No repository field. npm WARN

VueJS - Module not found: Error: Can't resolve '@babel/runtime/regenerator'

流过昼夜 提交于 2020-03-26 02:39:35
问题 I have this error Module not found: Error: Can't resolve '@babel/runtime/regenerator' in 'C:\wamp64\www\project-dev\modules\Gallery\Resources\Assets\Backend\Views\Album' when I execute this command npm run dev . So to explain my laravel project directory: app modules auth backend gallery themes admin node_modules resources js components router index.js store app.js sass views package.json webpack.mix.js So in my router/index.js of vuejs app, I will includes routes from a module. I make this: