npm

eslint 入门项目搭建过程

倖福魔咒の 提交于 2021-01-27 03:59:24
github 地址 : https://github.com/gebin/eslint-demo 运行该项目 npm install npm start 访问 http://localhost:9000 一步一步构建该项目 一开始我想整一个项目,测试一下eslint是怎么玩的,然后我想要基于webpack,因为大部分项目我们是基于webpack来创建的。 于是我新建了一个项目,npm init,一直enter下去,生成了一个package.json,这个文件用来记录需要的node模块。 然后我开始安装需要的node模块,首先是webpack,npm install webpack --save-dev。 然后我开始查找eslint 和webpack如何结合? 在eslint的官网, http://eslint.cn/docs/user-guide/integrations ,我发现了Build Systems --》Webpack: eslint-loader 。 我开始按照eslint-loader的说明安装, npm install eslint-loader --save-dev,同时当然需要安装eslint了,npm install eslint --save-dev。 然后我们来配置一下webpack.config.js也就是webpack的配置文件

Getting Error 404 while running npm install create-react-app

六眼飞鱼酱① 提交于 2021-01-26 18:45:34
问题 Getting error 404 while running npm install create-react-app or npm install -g npm@latest . Log: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'create-react-app' ] 2 info using npm@5.6.0 3 info using node@v8.11.3 4 verbose npm-session 1f3eafc1b2f09e93 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch

Getting Error 404 while running npm install create-react-app

丶灬走出姿态 提交于 2021-01-26 18:43:44
问题 Getting error 404 while running npm install create-react-app or npm install -g npm@latest . Log: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'create-react-app' ] 2 info using npm@5.6.0 3 info using node@v8.11.3 4 verbose npm-session 1f3eafc1b2f09e93 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch

Getting Error 404 while running npm install create-react-app

老子叫甜甜 提交于 2021-01-26 18:41:41
问题 Getting error 404 while running npm install create-react-app or npm install -g npm@latest . Log: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'create-react-app' ] 2 info using npm@5.6.0 3 info using node@v8.11.3 4 verbose npm-session 1f3eafc1b2f09e93 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch

Getting Error 404 while running npm install create-react-app

假装没事ソ 提交于 2021-01-26 18:40:45
问题 Getting error 404 while running npm install create-react-app or npm install -g npm@latest . Log: 0 info it worked if it ends with ok 1 verbose cli [ 'C:\\Program Files\\nodejs\\node.exe', 1 verbose cli 'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', 1 verbose cli 'install', 1 verbose cli 'create-react-app' ] 2 info using npm@5.6.0 3 info using node@v8.11.3 4 verbose npm-session 1f3eafc1b2f09e93 5 silly install loadCurrentTree 6 silly install readLocalPackageData 7 http fetch

HBuilder打包app(vue项目)

喜你入骨 提交于 2021-01-26 08:33:19
一、测试项目是否可以正确运行 指令:npm run dev 首先我们先建立一个vue的项目,本人用的是vue-cli随便建立的,然后运行项目 不必非得是像我这样的,这一步的目的只是测试一下咱们的vue项目是否可以运行 二、修改路径( assetsPublicPath: './' ) 打开我们config中的js文件,修改assetsPublicPath的路径为"./"(下图的右下角位置) 三、打包文件 指令:npm run build 打包后会生成dist文件 四、把dist文件变成app模式 在HBuilder中点击文件,打开目录,找到我们项目中的dist文件,确定。 然后我们会看到这样的带着 W 的文件 五、转换APP 右键dist,点击转换成App(T) 六、 在 manifest.json里面 配置APP名字及APP图标 我们在上一步会生成一个 manifest.json文件,打开它,我们在这里操作 app名字:就是应用名称(这里我写的是思源000) app图标:现在下面点击图标配置,然后选择图片放上去(图片只能为PNG格式,通过手动改后缀是不可以的),在这里我选择的是圣诞小人的图标 七、生成apk 1.点击发行,发行为原生安装包 2.点击使用DCloud公用证书,点击打包 好了打包成apk文件了,把这个安装到手机上咱们就可以用了,嘿嘿!!! 如果以上方法打包后还白屏

React-Native: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template

核能气质少年 提交于 2021-01-26 03:06:07
问题 While executing npx react-native init MyProject I ran into the following error: ✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template. Which seems to be related to an earlier error displayed: checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot checking whether the C compiler works... no xcrun: error: SDK "iphoneos" cannot

React-Native: Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template

不想你离开。 提交于 2021-01-26 03:05:40
问题 While executing npx react-native init MyProject I ran into the following error: ✖ Installing CocoaPods dependencies (this may take a few minutes) error Error: Failed to install CocoaPods dependencies for iOS project, which is required by this template. Which seems to be related to an earlier error displayed: checking for arm-apple-darwin-gcc... /Library/Developer/CommandLineTools/usr/bin/cc -arch armv7 -isysroot checking whether the C compiler works... no xcrun: error: SDK "iphoneos" cannot

How to fix `sh: ___: command not found` for NPM Modules

谁说我不能喝 提交于 2021-01-25 07:11:30
问题 I'm relatively new to Node development and I'm trying out various modules, frameworks, etc.. I'm on macOS Catalina. I've changed my NPM root and $PATH while trying to get things to work, and I think I broke something, though I'm not exactly sure what. My issue is very specifically with NPM, which is having a persistent problem running installed modules both locally and globally. When I try to install a dev tool like Nodemon or a framework like Electron, I get error codes like: sh: electron:

vue-devTools(chrome调试插件)

戏子无情 提交于 2021-01-25 07:10:48
引用网址: https://www.cnblogs.com/yuqing6/p/7440549.html 一,安装 1.github下载 git clone https://github.com/vuejs/vue-devtools 2 进入目录使用命令行安装 cd vue-devtools npm install 3修改manifest.json ( 打开shells>chrome>src>manifest.json并把json文件里的"persistent":false改成true ) 4 编译代码 npm run build 5 拓展Chrome插件 Chrome浏览器 > 更多程序 > 拓展程序 点击加载已解压程序按钮, 选择 vue-devtools > shells > chrome 放入, 安装成功如下图 6. vue-devtools使用 vue项目, 打开f12, 选择vue就可以使用了. vue是数据驱动的, 这样就能看到对应数据了, 方便我们进行调试 来源: oschina 链接: https://my.oschina.net/u/4397001/blog/3421768