使用Angular2 cli从dist构建中丢失节点模块

时间:2016-03-22 09:54:20

标签: node.js npm angular package.json

我正在使用Angular 2 cli来构建我的Angular 2网站,我现在正尝试为其添加身份验证并使用

添加angular2-jwt节点模块
    def paint(self, painter, option, index):
        painter.save()
        index.model().setData(index, option.rect.width(), Qt.UserRole+1)

它已将模块添加到package.json中,但在我运行时没有放在dist文件夹中

import os # Native commands
import time #Timer
import sys

choice = "" # Defining
p = "pizza" # Defining 
r = "readymeal" # Defining 
c = "curry" # Defining 

class Main:
# Check something = True/False
def UserInput():
    try:
        choice = raw_input("Which food?")
        if choice != p or r or c:
            print "Invalid choice"
            exit()                      

if choice == p:
    print "Alarm Set"
    time.sleep(900) # 15 Min
    os.system("start Alien_Siren.mp3") # Notification
elif choice == r:
    print "Alarm Set"
    time.sleep(420) # 7 Min
    os.system("start Alien_Siren.mp3") # Notification
elif choice == c:
    print "Alarm Set"
    time.sleep(420)
elif choice == "pizza and" and "readymeal": # Must type pizza and readymeal
    print "Alarm Set"
    time.sleep(1320) # 22 Min
elif choice == "exit": # Exit
    exit()

我还需要做些什么来将它放在dist文件夹中或诊断出错的地方。

这是包,json:

npm install angular2-jwt --save

这是ember-cli-build.js

的内容

ng build

0 个答案:

没有答案