Tag: npm

获取错误“无法find预设'react-server'相对于目录…”

完整的错误信息: ../assets/around/TCircle.svg模块构build失败:错误:无法在Array.map(native)目录中find相对于目录“/ Users / admin / Documents”的预设“react-server” 我一遍又一遍地得到了上面的错误,但是在整个项目的目录中没有提到react-server。 我试图完成的是链接资产目录作为npm依赖,并访问他们在整个项目。 另外(这听起来可能很愚蠢) – 但它完全适用于其他人的机器。

如何重新创buildnpm链接到可执行文件

我是npm和nodejs的新手。 我安装了nodejs 9,并创build了我的第一个npm build应用程序。 我注意到npm的prefix是/usr ,我将它改为/usr/local/npm-global 我把旧的软件包移到了新的位置。 我想重新创build符号链接。 我怎么做? 我检查bin , link和rebuild命令,但似乎并不是我所期待的。

安装noodle.js时出现这个错误

npm WARN deprecated connect@2.3.9: connect 2.x series is deprecated npm WARN deprecated CSSselect@0.7.0: the module is now available as 'css select' npm WARN deprecated CSSwhat@0.4.7: the module is now available as 'css-what' npm WARN deprecated jade@0.26.3: Jade has been renamed to pug, please install the latest version of pug instead of jade npm ERR! path […]

Git bash在错误的地方寻找node / npm模块

当我运行从git bash全局安装的任何节点模块时,它会抛出一个错误,它找不到(只是!)已安装的模块,在这个例子中,我试图用sails.js创build一个新项目: sails(master) > sails new test-project module.js:538 throw err; ^ Error: Cannot find module 'C:\Program Files\Git\node_modules\sails\bin\sails.js' at Function.Module._resolveFilename (module.js:536:15) at Function.Module._load (module.js:466:25) at Function.Module.runMain (module.js:676:10) at startup (bootstrap_node.js:187:16) at bootstrap_node.js:608:3 sails(master) > 那么,它当然找不到它,因为所有这些软件包都安装在Appdata / Roaming / npm / node_modules中,并且愉快地驻留在那里他们应该在哪里。 那么我怎么能指出git bash来查找正确的地方呢? 什么应该是这个确切的地方? 它发生在每一个新的包裹是帆,或expression..我自己弄不明白,浪费了很多时间search它。 我知道这个问题对于有经验的用户来说似乎是荒谬的,但是我在节点环境中相当新手。 在我的env.variables中,我有:用户variables:blabla \ Appdata \ Roaming \ npm系统variables:..C:\ Users \ Tomy […]

npm install mysql删除其他50个node_modules包?

当我在Fedora 27上运行(npm install mysql)命令时,这个命令删除程序中需要的其他50个node_modules包,并添加3个mysql包? 这是为什么? [jatinverma95@jatinverma95 DP]$ npm install mysql npm notice created a lockfile as package-lock.json. You should commit this file. npm WARN questionnaire@1.0.0 No description npm WARN questionnaire@1.0.0 No repository field. + mysql@2.15.0 added 3 packages and removed 50 packages in 2.498s [jatinverma95@jatinverma95 DP]$ git status On branch sql_implemntation Changes not staged for […]

EPERM:不允许操作,取消链接 – meteor错误

我是meteor的新手,特别是安装npm和运行meteor命令。 我摆脱了在安装部分的所有错误,但现在每当我在PowerShell上运行meteor命令,我得到这个错误: EPERM:操作不允许,取消链接'C:\用户\用户名\桌面\项目名称\包\ rocketchat谷歌vision.npm \ package-new-66a0vd.nnlae \ node_modules' 我无法访问本地主机:3000。

React没有导出的成员LinkHTMLAttributes

我正在使用vs2017,npm和webpack构build一个反应的应用程序。 由于在我的标题中描述的错误,我无法获得vs构build我的解决scheme: 错误TS2694 Build:Namespace'React'没有导出的成员'LinkHTMLAttributes'。 SpyStore.React C:\ Work \ Development \ React \ Spystore \ SpyStore.React \ SpyStore.React \ node_modules \ @types \ react-router \ lib \ Link.d.ts 10 Js文件:\ node_modules \ @types \ react-router \ lib \ Link.d.ts import * as React from 'react'; import Router from './Router'; declare const Link: Link; type Link = […]

从GitHub获取npm模块带来“.git”文件夹

我最近分发了一个npm包,并根据我的需要进行了更新。 然后,我改变了对packages.json的依赖,指向我的GitHub仓库,它工作正常。 但是,当npm安装模块时,它也带来了git文件夹( .git )。 因此,当我尝试安装其他任何东西时,npm给我这个错误: npm ERR! path /node_modules/react-native-static-server npm ERR! code EISGIT npm ERR! git /node_modules/react-native-static-server: Appears to be a git repo or submodule. npm ERR! git /node_modules/react-native-static-server npm ERR! git Refusing to remove it. Update manually, npm ERR! git or move it out of the way first. 我究竟做错了什么? 如何避免下载.git文件夹? 你可以在这里查看回购: https : […]

即使使用新build的应用程序,create-react-app的“npm start”也不起作用。 在chokidar node_module中抛出错误

在使用'create-react-app'的新创build的应用程序中使用'npm start test_app'时遇到此错误。 这个问题也出现在我以前使用create-react-app创build的项目上。 我已经尝试将节点版本更新到v8.9.1,将npm版本更新到5.5.1。 问题仍然存在。 test_app@0.1.0 start / home / user / test_app react-scripts start Starting the development server… events.js:160 throw er; // Unhandled 'error' event ^ Error: watch /home/user/test_app/public ENOSPC at exports._errnoException (util.js:1012:11) at FSWatcher.start (fs.js:1429:19) at Object.fs.watch (fs.js:1456:11) at createFsWatchInstance (/home/user/test_app/node_modules/chokidar/lib/nodefs-handler.js:37:15) at setFsWatchListener (/home/user/test_app/node_modules/chokidar/lib/nodefs-handler.js:80:15) at FSWatcher.NodeFsHandler._watchWithNodeFs (/home/user/test_app/node_modules/chokidar/lib/nodefs-handler.js:228:14) at FSWatcher.NodeFsHandler._handleDir (/home/user/test_app/node_modules/chokidar/lib/nodefs-handler.js:407:19) at FSWatcher.<anonymous> […]

Visual Studio 2017社区npm版本的麻烦

所以我按照指南获得了在Visual Studio 2017中运行的Ionic 2应用程序,并指出,一旦您创build了一个项目,就会使用npm和node来获得项目的依赖关系。 我监视了输出窗口,发现有人抱怨npm 5或更高,但只有3.3.1。 发生这种情况是因为在C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Web\External版本包含npm的3.3.1版本,并被VS用来运行npm命令。 所以在VS的设置中,我将VS应该用于npm和节点任务的path更改为我当前更新的NodeJS: 然而,现在,当我创build一个离子2空白模板的应用程序,创build后什么都不做,即不再获得依赖关系。 我能做些什么来解决这个npm / node问题?